Install the APIKO skills
Let Claude Code, Codex or another coding agent set up APIKO and call its models for you
What the skills do
APIKO publishes two agent skills. A skill is a short set of instructions that your coding agent loads by itself. Once they are installed, you ask for a result in plain words and the agent does the work: it reads the models your key can use, edits the right config file or writes the API call, and checks the result. You don't paste docs into the chat.
npx skills add https://apiko.appOne command installs both skills. Your agent picks the right one from your request.
Which skill do I need?
| You want to | Skill | Example request |
|---|---|---|
| Use APIKO models in Claude Code, Codex, OpenCode or Kimi Code | apiko-agents | "Set up Codex to use APIKO with gpt-6.1-sol" |
| See which APIKO models a tool can use | apiko-agents | "Which APIKO models can I use in Claude Code?" |
| Call APIKO from your own code | apiko-api | "Add an APIKO chat call to my Express server" |
| Generate an image or a video | apiko-api | "Make a 1:1 product photo of a white ceramic mug with gpt-image-2 and save it to ./public" |
| Compare models and prices | apiko-api | "Which APIKO image model is cheapest at 1K?" |
Before you start
- A coding agent that already works on your computer, such as Claude Code, Codex, Cursor or OpenCode. It doesn't have to use APIKO yet: it can set up itself or another tool. No agent yet? Use Option 2 · Manual setup.
- Node.js, so that the
npxcommand works. Check withnode -v; if the command is not found, install the LTS version from nodejs.org. - An APIKO account with some balance. Requests are billed to it; top up in Billing.
Step 1: Create an API key
An API key works like a password: it lets your tools use your APIKO balance. Open Dashboard → API Keys, click Create Key and copy the key (it starts with sk-). The full key is shown only once, so keep it somewhere safe.
Step 2: Save the key on your computer
The skills read the key from the APIKO_API_KEY environment variable, so the key never goes into your chat or your project files. Pick your system:
Open Terminal (press ⌘ + Space, type Terminal, press Enter), paste this line, replace paste-your-key-here with your key and press Enter:
echo 'export APIKO_API_KEY="paste-your-key-here"' >> ~/.zshrc && source ~/.zshrcTo check, open a new terminal and run:
[ -n "$APIKO_API_KEY" ] && echo "key is set"Step 3: Install the skills
npx skills add https://apiko.appThe installer asks which agents to add the skills to (use the arrow keys and Space to select, then press Enter) and whether to install them for this project or globally. Choose global, or add -g, to use them in every project. Run the same command again later to update to the latest version.
Step 4: Ask your agent
Quit your agent and start it again from a terminal opened after Step 2, so it loads the skills and can see the key. Then ask in plain words, for example:
Set up Codex to use APIKO with the model gpt-6.1-sol.
The agent checks the key, reads the models it can use, edits the right config file and tells you how to check the result. It asks before running anything that costs money, such as generating an image. More requests: What your agent can do.
How each tool connects
This is what the agent writes for each tool. Each tool name links to its step-by-step page.
| Tool (models) | Where the config goes | Base URL |
|---|---|---|
| Claude Code (Claude) | Environment variables in your shell profile | https://api.apiko.app (no /v1) |
| Codex (GPT) | ~/.codex/config.toml | https://api.apiko.app/v1 |
| OpenCode (Claude) | ~/.config/opencode/opencode.json | https://api.apiko.app/v1 |
| Kimi Code (all chat models) | ~/.kimi-code/config.toml | https://api.apiko.app/v1 |
Good to know
- Model names come from the live list. The skills make the agent read
GET /v1/modelswith your key instead of writing names from memory, so new models work right away. - One way to authenticate. Every APIKO endpoint reads the key from the
Authorization: Bearerheader. - Usage is billed to your APIKO balance, the same as calling the API yourself. Every request shows up in Dashboard → Usage.
- Keep your key safe. Keep it in the environment variable, never in chat, screenshots or files you commit. If it leaks, delete it in API Keys and create a new one.