Setup Center

You only need two things: a Base URL and an API Key. Any sk-*** value shown below is a placeholder. Replace it with your own key from the dolinx console.

RECOMMENDED

One-command installer

If you want the fastest path, copy the plain command for your system and paste your keys when prompted. Use a GPT-Key for Codex and a Claude-Key for Claude Code. The installer sets up Node, Codex CLI, Claude Code and the common configuration files.

# macOS / Linux
curl -fsSL https://dolinx.com/install.sh | bash -s

# Windows PowerShell
irm https://dolinx.com/install.ps1 | iex
If you previously signed into Codex with a ChatGPT OAuth account, no extra step is needed — the script overwrites the login config (your old login is backed up automatically). If Codex still opens a ChatGPT login page, run codex logout and then re-run the script.
What the script does / how to undo it+
  • Verify first, install second: it sends one request to the gateway with your key before touching anything — an invalid key or network issue fails fast with an error code (e.g. AUTH01 / NET01).
  • Dependencies handled: installs Node if missing (user-level on macOS / Linux; via winget on Windows, which may show one system prompt); Claude Code uses the official installer first with an npm fallback and mirror retries.
  • Files written: an env block in your shell config (macOS / Linux) or user environment variables (Windows), ~/.claude/settings.json, ~/.claude/agents/general-purpose.md, ~/.dolinx/claude-agent-mcp.cjs, ~/.codex/config.toml with the Claude MCP wrapper entry and sandbox permissions, and ~/.codex/auth.json (key file readable by you only).
  • Everything is backed up first: each modified file is copied to *.bak.dolinx.<timestamp> next to itself; overwritten environment variables are snapshotted under ~/.dolinx/.
  • Useful flags: --only codex / --only claude for a single product line (Windows: -Only).
  • Undo / uninstall: restore the .bak.dolinx.* backups and delete the # >>> dolinx blocks from your shell config. Re-running the script is safe — installed parts are skipped.

Which Base URL should I use?

Client or API styleBase URLRule
Claude Code / Anthropic-compatible toolshttps://api.dolinx.comNo /v1.
Codex / OpenAI-compatible toolshttps://api.dolinx.com/v1Include /v1.
gpt-image-2 APIhttps://api.dolinx.com/v1Images use the OpenAI-compatible endpoint.
Web Image Playgroundhttps://dolinx.com/imageOpen directly in your browser.

AI Tool Integration Tutorials

Create a dolinx account, add balance and generate your first API key.

Open dolinx console