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.tomlwith 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 claudefor a single product line (Windows:-Only). - Undo / uninstall: restore the
.bak.dolinx.*backups and delete the# >>> dolinxblocks from your shell config. Re-running the script is safe — installed parts are skipped.
Which Base URL should I use?
| Client or API style | Base URL | Rule |
|---|---|---|
| Claude Code / Anthropic-compatible tools | https://api.dolinx.com | No /v1. |
| Codex / OpenAI-compatible tools | https://api.dolinx.com/v1 | Include /v1. |
| gpt-image-2 API | https://api.dolinx.com/v1 | Images use the OpenAI-compatible endpoint. |
| Web Image Playground | https://dolinx.com/image | Open directly in your browser. |
AI Tool Integration Tutorials
Create a dolinx account, add balance and generate your first API key.
Open dolinx console