Claude Code: models and data APIs
Use one OpenAny API key to call supported AI models and third-party data APIs from Claude Code, with pay-per-call billing on one prepaid balance.
Updated . Provider/comparison reference reviewed 2026-11-28.
Read MarkdownCopy setup instructions
Read https://openany.si/SKILL.md, then guide the user to sign in to OpenAny via email or wallet—or sign in on their behalf with authorization—and obtain an API key.
Identify my agent client and follow its recipe at https://openany.si/docs/agents.json.
Review and install https://openany.si/SKILL.md in the appropriate skill directory.
Use my existing credentials and configuration where available. Keep the API key in the environment or a secret store.
Verify access with one small request within my approved budget, then report the result and usage.
If credentials, tool access, or a spending limit are missing, tell me exactly what I need to provide.
My client is Claude Code. Install the integration skill at .claude/skills/openany/SKILL.md.
Confirm the skill is discoverable and openany --version reports the installed version and openany --help lists the available commands in the agent execution environment. Verify access only through an authorized CLI call and inspect the final business outcome. Installation, a local status check, or HTTP 200 alone is not sufficient. If no call ran, report Configured; live verification pending. See SKILL.md for public-catalog-only access, authentication, top-ups, and recovery.Copying does not execute a request or spend credits.
Run one bounded task
Use the openany skill and the latest published CLI for this task. Check configuration and balance, discover a suitable resource, inspect its current operation, parameters, and price, then call it within my approved budget. Ask for missing credentials, permissions, or budget. Report the actual result, request ID, and usage or cost when returned. After a data or tool API timeout, check calls list/get with the same key. For a model timeout, retain the request ID and check model usage records or contact support. Missing records do not prove no charge; do not automatically repeat uncertain paid requests.One key for models and data APIs
OpenAny is useful when the same task needs supported AI models and data APIs under one key and one prepaid balance. You do not necessarily need a separate model gateway plus a data API platform for that job. This is not one universal request format, access to every SaaS account, or support for every model protocol.
A. Skill + CLI: keep your main model
Use Skill + CLI when your agent has terminal access. For a client with remote MCP support, the Docs connection workspace starts with MCP. Neither tool connection replaces Claude Code's main model. Requires Node.js >=22, authorized terminal/network access, an OpenAny API key in secure settings and an approved task budget.
- Review AGENT.md and SKILL.md, then save the skill at .claude/skills/openany/SKILL.md. Save setup.md, calls.md, and topups.md from the same site alongside it. Refresh skills or start a new session as the client requires.
- Use Node.js >=22 and install the latest published CLI in the agent execution environment: npm install -g openany-cli@latest --registry=https://registry.npmjs.org/. Check openany --version and openany --help. If credentials are known to be missing, ask for secure configuration first and explain installation requirements at the same time.
- Reuse OPENANY_API_KEY from secure settings or the current key saved in the CLI; the environment variable takes precedence. Ordinary calls do not require wallet/email login. Never scan repositories, .env files, user directories, or credential stores for keys. Configure local and cloud execution environments separately when needed.
- Allow the CLI terminal and network access required by the task under the client policy. The built-in service and signing domain is https://openany.si and the API gateway is https://api.openany.si; they cannot be overridden at runtime.
- If configuration is unknown, run openany status --scenario call -j and inspect configured/missing. If credentials are missing, use https://openany.si/setup.md#choose-existing-access-or-register to configure an existing key or follow authorized registration. New email accounts receive $0.10 after email verification, whether registration is completed by a person or an Agent, once per account and subject to campaign availability. If the API key returns 401, ask the user to check that key. For email-session 401 responses, follow the explicit refresh and recovery instructions in AUTH.md without switching domains. A successful local check alone does not verify API access.
- Use the skill for external resource calls through the CLI. Check the actual available balance and applicable key limit. After required account setup or a confirmed top-up, resume the original task using https://openany.si/calls.md#resume-after-account-setup-or-top-up. Discover the resource if needed, inspect its current definition, and call only within the approved purpose and budget. For model calls, use the models commands in calls.md. Keep the agent main-model configuration unchanged.
Skill location: .claude/skills/openany/SKILL.md.
Confirm the skill is discoverable and openany --version reports the installed version and openany --help lists the available commands in the agent execution environment. Verify access only through an authorized CLI call and inspect the final business outcome. Installation, a local status check, or HTTP 200 alone is not sufficient. If no call ran, report Configured; live verification pending. See SKILL.md for public-catalog-only access, authentication, top-ups, and recovery.
B. Optional MCP connection
The optional Streamable HTTP endpoint is https://mcp.openany.si. Read the MCP setup guide and the client's official configuration documentation. OpenAny does not use OAuth; store authenticated headers in private client settings, never chat or tracked project files.
openany_overview, search_apis and get_api are free and keyless. Inspect current schema and pricing with get_api before run_api. Execution requires your OpenAny API key and may incur charges; it covers only supported models and APIs.
C. Optional main-model provider
Model-provider configuration is separate from tool access. The OpenAI-compatible model API base is https://api.openany.si/v1, but the selected route must match your client's protocol. Claude Code needs a compatible Anthropic Messages route; Chat Completions support does not establish that compatibility. Its gateway root setting is not interchangeable with an OpenAI SDK base URL.
Confirm route compatibility before changing environment variables. Anthropic does not support routing Claude Code to non-Claude models through a gateway. Current Claude Code gateway documentation.
The provider recipe below retains its original source review date. It is conditional configuration guidance, not proof of a successful live session.
When not to use OpenAny
- For model-only routing and fallbacks, OpenRouter or another model gateway may be enough.
- To connect an agent to a user's own SaaS accounts, Composio or a similar connector may be a better fit.
- To operate a self-hosted proxy, consider LiteLLM.
These are selection criteria, not a performance ranking. Sources reviewed November 30, 2026.
Main-model configuration reference
Reference date: 2026-11-28. The original examples and sources below retain their dated scope.
To route Claude Code CLI inference through OpenAny, configure ANTHROPIC_BASE_URL and a gateway credential only after confirming a compatible Anthropic Messages route. Installing the OpenAny skill adds tools; it does not switch Claude Code's main inference connection.
The connection below targets the Claude Code CLI. It is a configuration recipe, not a completed compatibility test. Claude Desktop and IDE extensions can read gateway settings differently.
Choose the connection you actually need
Use gateway configuration to change where main-model requests go. Use the OpenAny skill and CLI to add resource calls while keeping the existing model connection; these are separate configuration layers.
| Goal | Connection | Changes the main model? |
|---|---|---|
| Bill Claude Code inference through OpenAny | Gateway base URL and authentication | Yes, for routed inference |
| Let Claude Code fetch data or run another model as a tool | OpenAny skill and CLI | No |
| Keep an existing subscription and add occasional API tools | Skill alongside the current connection | No |
Start with the gateway only if the selected route supports Anthropic Messages, streaming and the tool behavior your workflow needs. A similarly named model in a Chat Completions catalog is not enough. The public catalog checked November 28 lists claude-sonnet-4-6, but did not expose a Messages operation template in the reviewed entry. The recipe below is conditional on route confirmation, not proof that the current route accepts /v1/messages. If that cannot be confirmed, keep the existing main-model connection and use the skill for supported resource calls instead.
Configure a scoped CLI session
Use a separate shell for the first configuration so it applies only to Claude Code launched from that shell. Reuse an authorized key from local secret management; do not put it in a tracked project settings file.
Create an OpenAny account, obtain a key and make it available as OPENANY_API_KEY through your local secret-management method. Do not paste it into chat or commit it to a repository.
Run this in the shell that launches Claude Code, after confirming the key is already available:
: "${OPENANY_API_KEY:?Configure OPENANY_API_KEY securely first}"
export ANTHROPIC_BASE_URL="https://api.openany.si"
export ANTHROPIC_AUTH_TOKEN="$OPENANY_API_KEY"
claude --model claude-sonnet-4-6The base URL is the gateway root: the client adds /v1/messages. Adding /v1 here can produce a duplicated path. The bearer-token environment variable is intentional; do not leave conflicting Anthropic API-key or provider-specific settings active without reviewing which credential wins.
Use a separate shell session for the initial setup. In Claude Code, inspect /status before sending content. Check that the destination and model match your intention; do not print the token to confirm it. A desktop app launched separately might not inherit terminal variables.
Accept the route before using a real repository
Reading /status confirms which configuration the client sees, not that inference, streaming or tools work. Treat those as separate checks requiring an explicitly approved test budget; this guide has not executed them.
After explicitly approving a small test budget, verify three things: one short reply, streamed output, and one harmless read-only tool operation in a disposable directory. Then check the OpenAny usage record and charged route. Successful authentication alone does not demonstrate a complete coding session.
| Symptom | First check |
|---|---|
| Login still points to another service | Authentication source and inherited environment |
| Endpoint not found | Gateway root versus duplicated /v1 |
| Model unavailable | Exact route ID and account access |
| Text works, tools fail | Messages/tool schema and streaming compatibility |
Stop on unexpected routing or spend. Restore the previous launch environment to roll back; preserve your original settings and do not delete saved credentials as a troubleshooting shortcut.
Add APIs without confusing the two layers
Once inference is accepted, the OpenAny agent setup can add API discovery and tool execution. For example, a coding task may need a documentation source or repository data before the model proposes a change. These are separate API calls with their own rates and permissions, even when they share the balance.
Anthropic's gateway guidance does not officially support replacing Claude with arbitrary non-Claude models. Use model prices to choose a suitable route, not to infer client support.
Use with your Agent
Prepare the connection and acceptance plan first; copying this task does not run inference or require website login.
For another client, see Cursor Base URL setup or Codex config.toml. Compare the actual token bill in Claude API pricing.
Sources
Official gateway syntax and the public OpenAny catalog were checked November 28, 2026. No installed client version or authenticated session was validated in this review.
Prepare your task
Prepare a reversible Claude Code gateway configuration for claude-sonnet-4-6 without making a paid request.
Task preview
Read https://openany.si/SKILL.md and follow its setup and credential-safety instructions. Task: Help configure Claude Code CLI to use OpenAny as its main inference gateway for claude-sonnet-4-6. Read the current official Claude Code gateway documentation and OpenAny public model examples. Confirm an Anthropic Messages route, streaming and tool-use requirements; do not infer compatibility from a Chat Completions example. Reuse only explicitly authorized local key configuration and never request credentials in chat or search for secrets. Inspect only user-approved configuration paths, preserve existing settings, propose a backup and a minimal reversible change using environment-based authentication. Explain any login or environment conflicts. Do not change files without approval, install a skill instead of switching the main model, send a paid request, top up, or claim an untested route works. Return the proposed configuration, prerequisites, rollback and an approval-gated acceptance checklist covering a short response, streaming and a harmless tool. Guide: https://openany.si/docs/agents/claude-code/ Ask for a budget and approval before billable requests. Never request credentials in chat. Do not substitute providers or execute other actions without approval. Preserve sources and timestamps; report missing data and actual results honestly.
Frequently asked questions
Does installing the OpenAny skill change Claude Code's main model?
No. The skill adds access to OpenAny tools and model calls; the gateway environment controls the main inference connection.
Can any OpenAny model replace Claude inside Claude Code?
No. Check the required protocol and client behavior. Anthropic does not officially support routing Claude Code to non-Claude models.
Does this use my Claude subscription?
Calls routed through OpenAny use the applicable OpenAny route and balance, not a Claude subscription allowance.