Skip to content

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:

Terminal window
https://api.r9s.ai/

Use your R9S API key for authentication.

AgentGuideBase URL
Claude CodeClaude Codehttps://api.r9s.ai/
CodexCodexhttps://api.r9s.ai/
OpenClawOpenClawhttps://api.r9s.ai/
OpenCodeOpenCodehttps://api.r9s.ai/
SettingValue
Base URLhttps://api.r9s.ai/
API keyYour R9S API key
OpenAI-compatible modelsFor example gpt-5-codex
Anthropic-compatible modelsFor example claude-sonnet-4.5 or claude-opus-4.5

Before configuring an agent, verify that your key can access R9S:

Terminal window
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.