Agents
Use R9S as the gateway endpoint for coding agents that support LiteLLM-style, OpenAI-compatible, or Anthropic-compatible configuration.
The examples in this section follow the LiteLLM agent setup pattern. Replace the LiteLLM proxy URL with the R9S base URL:
https://api.r9s.ai/Use your R9S API key for authentication.
Supported Agents
Section titled “Supported Agents”| Agent | Guide | Base URL |
|---|---|---|
| Claude Code | Claude Code | https://api.r9s.ai/ |
| Codex | Codex | https://api.r9s.ai/ |
| OpenClaw | OpenClaw | https://api.r9s.ai/ |
| OpenCode | OpenCode | https://api.r9s.ai/ |
Common Settings
Section titled “Common Settings”| Setting | Value |
|---|---|
| Base URL | https://api.r9s.ai/ |
| API key | Your R9S API key |
| OpenAI-compatible models | For example gpt-5-codex |
| Anthropic-compatible models | For example claude-sonnet-4.5 or claude-opus-4.5 |
Verify Access
Section titled “Verify Access”Before configuring an agent, verify that your key can access R9S:
export R9S_API_KEY="<R9S_API_KEY>"
curl https://api.r9s.ai/v1/models \ -H "Authorization: Bearer $R9S_API_KEY"If the request succeeds, use the same key in the agent-specific guides.