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 command for your system and replace the keys. 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 -- --codex-key sk-your-codex-key --claude-key sk-your-claude-key # Windows PowerShell $env:CODEX_KEY="sk-your-codex-key"; $env:CLAUDE_KEY="sk-your-claude-key"; 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 (4 kinds): an env block in your shell config (macOS / Linux) or user environment variables (Windows),
~/.claude/settings.json,~/.codex/config.toml, 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;--config-onlyto write config without installing software (Windows:-Only/-ConfigOnly). - 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://api.dolinx.com/gpt-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