@gainable.dev/cli. It provides the gaia command and is the engine behind both the Claude Code and Codex plugins — install it once and it works everywhere.
Requirements
- Node.js 18 or newer
- A Gainable account (sign up free)
Step 1 — Install
Install the package globally
@gainable.dev is parsed as the splatting operator and the command never reaches npm. In bash/zsh the quotes are harmless.Step 2 — Get an API key
The CLI authenticates with an API key tied to your account.Open your account settings
Go to build.gainable.dev and open Account → API keys.
Step 3 — Log in
~/.gainable/credentials (mode 0600). The default server is https://build.gainable.dev.
Environment variables override the stored file, which is handy in CI:
GAINABLE_API_KEY— yourgak_keyGAINABLE_API_BASE— the server URL (defaults tohttps://build.gainable.dev)
Step 4 — Confirm it works
Next: add a plugin
The CLI is useful on its own, but it really shines when your coding agent drives it. Pick your agent:Claude Code
Install the Gainable plugin in Claude Code.
OpenAI Codex
Install the Gainable plugin in Codex.
Per-project setup
Inside a folder for a specific app, run:.gaia/project.json that links the folder to one of your Gainable projects, so commands like gaia chat and gaia code know which app they’re working on. You’ll pick a project from a list (or pass --project <id>). It also seeds .codex/rules/gaia.rules, so Codex runs gaia commands without approval prompts in that workspace.