Skip to content

Policy

Each workspace has one policy. Edit it on the workspace page, where changes save automatically, or with avant workspace policy set. A workspace with no policy allows everything.

The policy has two halves:

  • Proxy. Enforced on every request through the proxy, for every member, people and agents alike.
  • Harness. Written into a person’s harness config when they run avant workspace use. It doesn’t apply to agents, because the proxy never sees these calls.
Setting Policy field Effect
Allowed models models.allowed Any other model is refused with 403 models.allowed.
Inference location residency.allowedLocations Where BYOC inference may run. Restricts the models you can pick. Not used for direct workspaces.
Spend cap limits.spendCap See Spend caps.
Masking pii See Masking.
Scan limit limits.maxScanCharacters Largest conversation scanned for masking. Default 8,000,000 characters. Larger is 413 limits.inputSize.
Require a system prompt content.requireSystemPrompt A request without one is 400 content.requireSystemPrompt.
System prompt prefix content.systemPromptPrefix Text added before the system prompt of every request.
Denied tools tools.deny A request that declares or has used a denied tool is 403 tools.deny.
Denied commands cli.deny A matching shell command fails, and the request continues. See below.
Managed MCP only mcp.restrictToManaged Tools from an MCP server that isn’t one of the workspace’s connectors are 403 mcp.restrictToManaged.
Log export logExport Which org log export sources get this workspace’s requests. See Log export.

When a request has no model, the proxy uses the first entry in the allowed models. With no allowlist, it uses the provider’s default from the model tables on each provider page. Put the model you want as the default first.

Tool names use Claude Code’s grammar: Bash, Edit, WebFetch, mcp__github__search_issues, mcp__github__*, or * for every tool. Names must start with an uppercase letter, except MCP names.

cli.deny uses Claude Code’s Bash(...) pattern syntax:

Pattern Matches
git status Only git status
git push:* git push with any arguments
git * main Any command with something between the parts
* Every command

Whitespace is collapsed before matching. A denied command is replaced with a failed tool result, so the model sees that it failed. The proxy doesn’t reject the whole request, because that would leave the call in the transcript and fail every later turn.

The proxy can only see a command once the model has requested it. Harnesses that support it also get the deny list locally, so they block the command before it runs.

Setting Policy field Effect
Skills skills Installed on avant workspace use. See Skills and connectors.
Connectors connectors Remote MCP servers added to the harness config.
Denied paths filesystem.deny Written into the harness’s permissions, for example ~/.ssh/**.

Path patterns: ** matches anything including /, * matches within one path segment, and ~ is the home directory.

Not every harness can express every rule:

  • Claude Code gets tool, command and path denies in its permissions.
  • Codex gets them through its approval and sandbox settings. If Codex’s config sets sandbox_mode itself, remove it so the path denies apply. The CLI warns about paths that Codex’s filesystem profiles can’t express.
  • Pi has no permission system. Only what the proxy enforces applies, and the CLI says so when you connect.

A template is a saved policy. Pick one when you create a workspace, or apply one later:

Terminal window
avant workspace policy set my-team --template pii-safe

Applying a template copies its policy into the workspace.

Built-in templates:

Id Name Policy
permissive Default Logs PII, no other limits.
pii-safe PII-Safe Redacts PII. Denies WebFetch and ~/.ssh, ~/.aws, ~/.gnupg, /etc.
restricted Restricted Only gemini-3.8-flash. Redacts PII. Denies WebFetch, git push, rm -rf, curl, wget, and the same paths.
internal-only Internal Only Only gemini-3.8-flash. Blocks PII, requires a system prompt, denies Bash, Edit, Write, WebFetch, WebSearch and the same paths.

Org admins create custom templates under Policy templates.

A refused request returns the status in the tables above, in the error shape the client’s API expects. The rule is in the X-Policy-Rule header and the request id is in X-Request-Id. Every rejection appears in the organization’s request log.