Skip to content
API referenceBlogDashboard

Claude Code and Codex

Add SolCard Inference's models to Claude Code or Codex next to your own, with one sentence and a browser approval.

Paste this into Claude Code or Codex:

Add SolCard Inference to my models: solcardinference.ai/install

solcardinference.ai/install is instructions written for an agent, not a script. It sends each agent to its own runbook, and the agent asks you once before it changes anything. Then it:

  1. Downloads CLIProxyAPI, a small open-source proxy, checks its checksum, and runs it as a background service on 127.0.0.1 only.
  2. Asks you to approve SolCard Inference in your browser: sign up or sign in, check the code matches, and click Approve. The agent collects the key from that approval, so you never paste it. If your message already includes a key (sk-si-...), it uses that instead.
  3. Points itself at the proxy. Requests for your own models go on to Anthropic or OpenAI with your own login, unchanged; requests for SolCard Inference models go to https://api.solcardinference.ai.
  4. Checks both kinds of request work before it says it’s done.

Everything it adds lives in ~/.solcard-inference, the agent’s own settings and one line in your shell profile. The runbooks cover macOS, Linux and Windows. The Claude desktop app’s Code tab and Claude Cowork only run Claude’s own models: set it up from Claude Code in a terminal.

Then restart the tool:

  • Claude Code: exit and run claude again. /model lists the SolCard Inference models below your Claude models, which keep running on your own Claude plan.
  • Codex: quit, run codex app-server daemon restart, and start Codex again. In the ChatGPT app, quit and reopen it. The model picker lists the SolCard Inference models next to your ChatGPT models.

To switch back, ask the agent to “remove SolCard Inference from my models”. It removes the models from its settings, stops the proxy and deletes its files.

Each agent reads its own, with its shell:

Agent Runbook
Claude Code https://api.solcardinference.ai/install/claude-code
Claude Code on Windows https://api.solcardinference.ai/install/claude-code/windows
Codex https://api.solcardinference.ai/install/codex
Codex on Windows https://api.solcardinference.ai/install/codex/windows

Anything that lets you set an OpenAI or Anthropic base URL works without the proxy: use https://api.solcardinference.ai/v1 for OpenAI-compatible clients, https://api.solcardinference.ai for the Anthropic SDK, and a key from app.solcardinference.ai. See Quickstart and Models.