OpenAI + Anthropic

Both SDKs honour HTTPS_PROXY. Nothing else in your agent code changes.

1 · Environment

eval "$(aarmos env)"   # authenticated HTTPS_PROXY + HTTP_PROXY
export OPENAI_API_KEY=sk-…
export ANTHROPIC_API_KEY=sk-ant-…

2 · Policy

[[allow]]
verb = "communicate"
host = "api.openai.com"
ceiling.per_minute = 60

[[allow]]
verb = "communicate"
host = "api.anthropic.com"
ceiling.per_minute = 60

3 · Run

aarmos run -- node agent.mjs

Notes

  • Streaming responses (SSE) are proxied without buffering.
  • Add `contract.max_tokens = 8000` on the allow rule to hard-cap runaway generations.
  • OpenAI Assistants and Anthropic tool-use both surface as tool invocations under the same 8-verb model.

See all providers → recipes index.