For AI agents: the complete documentation index is available at https://docs.phax.run/llms.txt, the full documentation bundle is available at https://docs.phax.run/llms-full.txt, and this page is available as Markdown at https://docs.phax.run/guide/providers-and-security.md.

Agents and security

Providers and security

Models and providers

phax can run a phase with Claude Code, OpenAI Codex or Mistral Vibe. A plan asks for a model and an effort; the routing layer maps them to a provider that has them, following providerPriority in ~/.phax/model-routing.json (mistral-vibe, codex-cli, then claude-code by default). Vibe and Codex are disabled until you enable them, so a fresh install runs everything with Claude Code.

phax agent models                                    # the routing table and the provider priority
phax agent resolve --model claude-sonnet-5 --effort medium   # where a request would go
phax agent probe                                     # which provider CLIs are installed
phax agent setup providers --write                   # write providers.json; a first write enables the installed providers

docs/model-routing.md explains how a request is resolved, and the model catalog lists the models phax knows.

Security modes

Every run has a security mode, from security.profile in phax.json or --security:

ModeWhat the agent can do
secureDefault. The provider's own sandbox: files limited to the worktree, network as network.profile allows where the provider can enforce it, no MCP.
unsafeAnything on your machine. phax warns you. For plans you trust.
isolatedAn external sandbox. Planned, refused today.

Providers differ: Claude Code and Codex jail the filesystem, and Vibe is confined per invocation (tool-level, with a prefix allowlist for the phase's agent commands), so a secure run keeps all three. Vibe 3.1.3 or later is required (uv tool upgrade mistral-vibe); phax picks its model and thinking level with Vibe's --model and --thinking flags and installs nothing in ~/.vibe/config.toml. phax refuses a secure or read-only Vibe session while ~/.vibe/agents/accept-edits.toml exists (it would replace the agent phax runs; rename it), or while an extra writable root holds Vibe config (.vibe/ or .agents/, which Vibe loads from such a root), and refuses a turn's result when the config it ran with is not the one phax set. No provider filters network by domain, and only Codex can cut a phase's network off. The mode a phase actually ran with is in its security.json. phax security status shows what each installed provider can enforce.

The agent can run your gate commands and the commands in security.agentCommands, and nothing else where the provider supports an allowlist. The phax binary has no network permission of its own: what reaches the network (an agent, git push, gh) is a program it starts. And phax never builds a shell command from your data: every command it runs gets its arguments one by one. docs/security.md has the details.