Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions crates/client/src/agent_os.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1250,6 +1250,7 @@ const DEFAULT_EGRESS_HOSTS: &[&str] = &[
"api.openai.com",
"generativelanguage.googleapis.com",
"openrouter.ai",
"api.orcarouter.ai",
];

/// Resource patterns for the default egress allowlist. Network permission
Expand Down Expand Up @@ -3886,6 +3887,8 @@ mod tests {
assert!(patterns.contains(&"dns://api.openai.com".to_string()));
assert!(patterns.contains(&"dns://generativelanguage.googleapis.com".to_string()));
assert!(patterns.contains(&"dns://openrouter.ai".to_string()));
assert!(patterns.contains(&"dns://api.orcarouter.ai".to_string()));
assert!(patterns.contains(&"tcp://api.orcarouter.ai:*".to_string()));
}

#[test]
Expand Down
1 change: 1 addition & 0 deletions docs/content/docs/agents/opencode.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ OpenCode auto-detects a provider when its key is present on the session's `env`,
- `ANTHROPIC_API_KEY` — Anthropic (Claude), the default.
- `OPENAI_API_KEY` — OpenAI.
- `OPENROUTER_API_KEY` — OpenRouter.
- `ORCAROUTER_API_KEY`. Set this to use [OrcaRouter](https://www.orcarouter.ai), an OpenAI-compatible gateway that routes requests to the best available model.
- `GEMINI_API_KEY` — Google Gemini.
- `GROQ_API_KEY` — Groq.
- …plus Amazon Bedrock, Azure, Google Vertex, and 70+ providers via [models.dev](https://models.dev).
Expand Down
2 changes: 1 addition & 1 deletion docs/content/docs/agents/pi.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Read [Sessions](/agentos/docs/sessions) first for session options, streaming eve
Set the relevant variable on the session's `env`, sourced from your server's environment:

- `ANTHROPIC_API_KEY` — Anthropic (Claude), the default.
- Other providers — use the provider-named key (e.g. `OPENAI_API_KEY`, `GEMINI_API_KEY`, `OPENROUTER_API_KEY`).
- Other providers — use the provider-named key (e.g. `OPENAI_API_KEY`, `GEMINI_API_KEY`, `OPENROUTER_API_KEY`, `ORCAROUTER_API_KEY`).

See [Models & Credentials](/agentos/docs/models-and-credentials), and Pi's [providers docs](https://github.com/badlogic/pi-mono/blob/main/packages/coding-agent/docs/providers.md) for the full list.

Expand Down