# Default access https://fenzi.dev/docs/default-access What an agent can read, write, and reach in a new sandbox when the project has no `fenzi.yaml`. The short version: the project copy is writable, GitHub and the npm and Python registries are readable, the registries of the project's own languages are readable too, the model API works with a key the agent cannot see, and everything else is closed. Policy: developer-default ยท Free plan ## Files | Path | Access | Why | | --- | --- | --- | | `/sandbox/` | Read and write | The copy of your project. The agent starts here. | | `/sandbox` | Read and write | The agent's home folder, so its own settings stay out of your project and out of the diff. | | `/tmp`, `/dev/null` | Read and write | Scratch space. Gone when the sandbox is deleted. | | `/bin`, `/usr`, `/lib`, `/etc`, `/app` | Read only | The image's programs and libraries. | | `/proc`, `/var/log`, `/dev/urandom` | Read only | What ordinary programs expect to find. | Your home folder is not in the list because it is not in the sandbox at all. `~/.aws`, `~/.ssh`, your shell history, and other repositories were never copied in. Files matched by `.gitignore`, and `.git` itself, were not copied either. See [Workspace and changes](https://fenzi.dev/docs/workspace). ## Hosts | Host | Access | Used for | | --- | --- | --- | | `api.github.com` | `read-only` | Reading issues, pull requests, and repository metadata. | | `github.com` | `read-only`, and `POST /**/git-upload-pack` | Cloning and fetching with `git` over HTTPS. Pushing, `git-receive-pack`, is refused. | | `codeload.github.com` | `read-only` | Source archives, which package managers download. | | `raw.githubusercontent.com` | `read-only` | Single files from public repositories. | | `objects.githubusercontent.com`, `release-assets.githubusercontent.com` | `read-only` | Release downloads, where GitHub redirects them. | | `registry.npmjs.org` | `read-only` | Installing npm packages. | | `pypi.org` | `read-only` | Python package index. | | `files.pythonhosted.org` | `read-only` | Python package downloads. | `read-only` means `GET`, `HEAD`, and `OPTIONS`. `git` sends a fetch as a `POST` to `git-upload-pack`, so `github.com` allows that one path as well, as OpenShell's own GitHub profile does. Pushing to GitHub, publishing a package, or posting anywhere is denied. Every other host is refused at DNS and at connect. A read can still carry data out in its address. The list is for hosts the agent needs to read; see [Known limits](https://fenzi.dev/docs/limits#allowed-hosts). ## Hosts for your project's languages When a file below is in the project folder, or in a folder one level down, the sandbox also gets that language's package hosts, read-only, with one exception named below. Nothing is written to your project; `fenzi policy check` names the stacks it added, as in `developer-default (built in) + stacks go`. | File | Hosts, read-only | | --- | --- | | `go.mod` | `proxy.golang.org`, `sum.golang.org` | | `Cargo.toml` | `index.crates.io`, `static.crates.io`, `crates.io` | | `Gemfile` | `rubygems.org`, `index.rubygems.org` | | `composer.json` | `repo.packagist.org`, and on `packagist.org` only `POST /api/security-advisories/` | | `pom.xml`, `build.gradle`, `build.gradle.kts` | `repo.maven.apache.org`, `plugins.gradle.org` | | `*.csproj`, `*.fsproj`, `*.sln` | `api.nuget.org` | | `yarn.lock` | `registry.yarnpkg.com` | `composer audit` sends the project's package names to Packagist's advisory API, so that one write is open. Composer also posts install statistics to `packagist.org/downloads/`; that stays refused, and Composer carries on without it. The agent images carry Node, Python, and `git`. For PHP, Ruby, Java and Go, `fenzi run` adds the toolchain to a copy of the image; see [Your project's languages](https://fenzi.dev/docs/images#tools). A project's `fenzi.yaml` can replace a stack's host with a rule of its own. On Team the team's policy decides, and no stack is added. ## What each agent adds The policy does not list model APIs. Each agent's key comes with the endpoints it is bound to, and those are added when the sandbox is created. Some agents also need a host for their own start-up check, which gets a read-only rule and never the key. | Agent | Model endpoint, with the key | Other hosts, without the key | | --- | --- | --- | | Claude Code | `api.anthropic.com:443` | `platform.claude.com:443`: reads, and `POST /v1/oauth/token` for the sign-in token. Claude Code checks it on first start. | | Codex | `api.openai.com:443` | None. | | OpenCode | `api.anthropic.com:443` | None. This catalog entry is Anthropic only. | | Grok | `api.x.ai:443` | None. | Claude Code also runs with `CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1`, its own documented switch for telemetry, error reports, and update checks. Without it, those calls would be refused and file a request on every run. OpenCode runs with its update check, model-list refresh, language-server downloads, and default plugins turned off, and with its provider list limited to Anthropic. The image also skips a plugin install OpenCode would otherwise try on startup, so a start calls only `api.anthropic.com`. Grok runs with its update check off and its own sandbox off, so a start calls only `api.x.ai`. The model endpoint is open because the agent cannot work without it. Whatever the agent reads can go to the model vendor in a prompt. See [What reaches the model](https://fenzi.dev/docs/how-it-works#model). ## Processes The agent runs as an unprivileged `sandbox` user, not root, under Docker and Podman. Under the MicroVM driver it runs as the user the driver configures. Raw sockets are blocked, so a program cannot open its own path around the proxy. Programs the agent starts, such as `git`, `pip`, or `npm`, inherit the agent's network rules. A program started some other way does not. ## Keys The agent's environment holds a placeholder where the key would be. The real key is added on the way out, only on requests to the model endpoint above. See [Model keys](https://fenzi.dev/docs/keys). ## Asking for more When the task needs a host that is not listed, the sandbox writes a request from the blocked call on its own. Agents that get Fenzi's guide can also file one themselves, through the sandbox's local policy API, with a reason. A person approves or denies it. See [Requests and approvals](https://fenzi.dev/docs/approvals). To give every run on a project the same extra hosts, add them to `fenzi.yaml`. See [Adding hosts for a project](https://fenzi.dev/docs/policy#project). ## See it yourself ```bash fenzi policy compile --agent claude ``` That prints the exact policy the sandbox would get, without starting anything.