← All applications · Connect apps section on /docs
Anthropic + OpenAIManual setup
API CLI
Also known as: wizard · api-cli doctor · api-cli
API CLI: install the configuration tool and check app connections.
Published instructions · App version: unverified
Chat, ping, invoke and content-generation examples may send real billable requests. Check the model, balance, rate and minimum before running them. GET /v1/models checks authentication and the catalogue only. Set up environment variables safely
Base URL to paste
OpenAI SDKs generally use a URL ending in /v1; Anthropic SDKs use the root URL. Avoid adding /v1 twice. Protocol compatibility does not guarantee every provider feature.
See notes / depends on the protocolThis app has exceptions — read Notes below before pasting.
Prerequisites
- Node.js ≥ 18 (LTS recommended)
- An API key in the form sk-apv-… from Dashboard → Keys
- Write access to your home directory (to create ~/.apivn and update app configuration)
Recommended model: claude-fable-5
Quick way — command / config
# Recommended — same on Win / macOS/Linux
npm install -g API CLI@latest
# Open the wizard — paste the API key when prompted
api-cli
# Or configure a specific app
api-cli configure claude -m claude-fable-5
api-cli configure codex -m gpt-5.6-sol
api-cli configure openclaw
api-cli configure clineWhere to place file / fill Settings
Filemacos
~/.apivn/config.json
File created by API CLI (chmod 0600). Contains the saved API key and base URL. Do not commit this file to Git.
Filelinux
~/.apivn/config.json
Same as macOS. Check: ls -la ~/.apivn/config.json
Filewindows
%USERPROFILE%\.apivn\config.json
PowerShell: notepad $env:USERPROFILE\.apivn\config.json Edit only if you understand the settings — prefer api-cli auth login / api-cli -k '…'.
Verify connection
- Run `api-cli doctor` — installed tools should show that they point to APIVN.
- Open Dashboard → Usage: a test chat command should create a charge entry.
- Run `api-cli info` to see the base URL in use.
Troubleshooting
| Symptom | Reason | How to handle |
|---|---|---|
| npm install -g reports EACCES / permission errors | No permission to write to the global npm prefix. | Use nvm/fnm or configure a user-level npm prefix; avoid sudo unless you understand the risks. |
| doctor reports that the tool is not configured | The app is not installed, or its old configuration has not been patched. | `api-cli configure <tool> -k '…'` or `api-cli doctor --fix`. |
Notes
- Base URL Anthropic: https://apivn.dev — OpenAI: https://apivn.dev/v1. API CLI tự chọn theo từng tool.
- Repo: https://apivn.dev

