Connect Agent Tools to AnyInt
Choose an agent tool, add your AnyInt API key and model ID, then verify the connection with one command.
Connect an existing agent product to AnyInt, or use AnyInt APIs to build your own agent application. Choose the path that matches what you are trying to finish.
Use an existing agent tool
Configure Claude Code, Codex, Gemini CLI, CC-Switch, or another compatible client.
Build an agent application
Use an API or SDK with streaming, tool calling, structured output, and model discovery.
Before you start
- Create an AnyInt API key.
- Check the models available to your account, or call the Models API.
- Keep the key in an environment variable or secret manager. Do not commit it to a repository.
export ANYINT_API_KEY="your-anyint-api-key"
curl https://api.anyint.ai/openai/v1/models \
-H "Authorization: Bearer $ANYINT_API_KEY"Use a model ID returned for your account. Do not assume that every public model name is enabled for every key.
Choose your tool
Claude Code
Recommended stable path through the Anthropic-compatible API.
Codex
Connect through the OpenAI Responses API, currently published as Beta.
Gemini CLI
Use the stable Gemini-compatible API and a Gemini model ID.
CC-Switch
Manage several local providers through a third-party desktop app or CLI.
Other compatible tools
Configure clients that accept a custom OpenAI or Anthropic base URL.
Troubleshooting
Resolve key, model, base URL, environment, and compatibility errors.
Support status
Protocol status and tool ownership are separate:
| Tool | AnyInt API family | Protocol status | Integration ownership |
|---|---|---|---|
| Claude Code | Anthropic-compatible | Stable | AnyInt setup guide for a third-party client |
| Codex | OpenAI Responses | Beta | AnyInt setup guide for a third-party client |
| Gemini CLI | Gemini-compatible | Stable | AnyInt setup guide for a third-party client |
| CC-Switch | Depends on the selected client | Inherits the API family status | Third-party provider manager |
| Other tools | OpenAI- or Anthropic-compatible | Depends on the selected family | Compatibility guide |
Beta routes should be verified with the target account, model, and client version before production use.
Build an agent application
If you control the application code, start with the API family your SDK already supports:
| Need | Start here |
|---|---|
| OpenAI SDK or Chat Completions | OpenAI-compatible API |
| OpenAI Responses-based agents | OpenAI Responses API |
| Anthropic Messages or Claude-style content blocks | Anthropic-compatible API |
| Gemini-native content and function declarations | Gemini-compatible API |
| Functions or external actions | Tool Calling |
| Predictable machine-readable output | Structured Outputs |
| Incremental output | Streaming |
Completion checklist
Your setup is complete when:
- the client uses an AnyInt public base URL
- the API key is not stored in source control
- the configured model ID is visible to the same key
- a minimal prompt returns a response
- the client can recover from an invalid key, invalid model, and temporary upstream error
Continue with Troubleshooting if the first request does not complete.