onyx command is terminal-only and primitive-oriented. In normal usage, you log in once and start research from an agent with /onyx ...; the agent composes these commands into the loop. Use this reference when debugging, scripting, or understanding what the agent is doing.
Install and Version
Developer Mode
onyx command installed
while switching it between the release CLI and a linked source checkout.
link detects either an onyx-agent checkout or an onyx-research checkout
with packages/agent. use dev dispatches commands through Bun to the linked
source CLI and symlinks the managed skill file to the checkout. use release
restores the installed release CLI and release skill. Active agent sessions may
need to reload or restart if they cache skill files.
Login
--refresh to rotate the stored key for a selected team.
Agent Skill
skill-path prints the bundled skill location. install-skill copies it into
the default Claude Code personal skill directory
(~/.claude/skills/onyx/SKILL.md) or a provided path.
Profiles
Branches
onyx/{name}, records branch metadata, infers the repository from origin, and queues the branch for sync. When GitHub access is available, the first successful sync creates or reuses the internal project automatically. The Onyx agent usually runs this for you after interpreting your /onyx prompt.
Experiments
onyx/eval.sh, parses METRIC lines, optionally runs onyx/checks.sh, and stores the latest run locally. The Onyx agent usually creates those scripts and invokes this command for each measured attempt.
onyx sync first after a fresh clone to hydrate history from the app.
Session and Sync
listen: live read-only view of local activity.status: active branch, project path, pending outbox records, and project resolution.push: pushes the current branch and flushes the outbox.sync: flushes the outbox, lazily provisions the project if needed, hydrates history, and requests repository sync.
Environment
| Variable | Meaning |
|---|---|
ONYX_API_KEY | Explicit API key override. |
ONYX_API_URL | Explicit API URL override. |
| Profile env var | A profile-specific secret configured by set-api-key-env. |