Command reference
Every oxagen command and flag: spend, prices and billing, steering and repositories, agents and work orders, runtimes and sandboxes, runs and their evidence, the knowledge graph, the code graph, agent memory, environments, secrets, API keys, and the market router.
Run oxagen --help for the live list, and append --help to any command for its flags. oxagen --version prints the CLI's version.
Most platform commands need an authenticated CLI. cost, logs, telemetry, and verify work offline. oxagen graph upload signs in with the CI provider's token and needs no login. oxagen agent enroll with a one-time token needs no login. The commands under oxagen agent that take no agent argument act on this machine's local state, except hosts and register-machine, which call the control plane. oxagen work acts for the agents enrolled on this machine and needs no login, except oxagen work staffing, which reads the workspace's runs, and oxagen work stale, which reads the workspace's work.
oxagen budget: spend ceilings
oxagen budget show [--json]
oxagen budget set [--json]Hard period-to-date spend ceilings that gate agent runs. show lists every configured ceiling with its live burn. See Spend budgets for the full model.
set makes no change. Only a person signed in to Oxagen can set a ceiling, so the API refuses every key, the CLI's own included. The command prints the Budgets tab of Guardrails, opens it when you run it at a terminal, and exits 1. It still takes the flags it took while it wrote a ceiling (--scope, --period, --limit, --window-days, --enabled) and reads none of them, so an older script gets the same answer.
oxagen spend: spend by dimension
oxagen spend attribution --group-by <dimension> [--cross-by <dimension>] [--range <preset> | --from <day> --to <day>] [--compare [<range>]] [--workspace <id>]... [--filter <dimension>=<value>[,<value>...]]... [--bucket <hour|day|week|month>] [--json]A finance lead who asks why the bill rose needs the spend split by model, then by operator, then by workspace. attribution reads the organization's agent spend over a range of UTC days, split by one dimension, and says how much of it was wasted. It covers every workspace you can open, unless you name some with --workspace. An organization Owner or Compliance and Billing member opens every workspace. Anyone else opens the workspaces where they are Admin or Member.
| Flag | Description |
|---|---|
--group-by <dimension> | Required. What to split spend by: workspace, operator, agent, harness, runtime, harness_runtime, model, effort, run_kind, run, work_item, label, kind, severity, or outcome. |
--cross-by <dimension> | A second dimension, different from --group-by. The output adds one row for each pair of values. |
--range <preset> | today, yesterday, this_week, last_week, this_month, last_month, this_quarter, last_quarter, last_30_days, last_90_days, current_year, or last_year. Defaults to last_30_days. |
--from <day>, --to <day> | A range of up to 366 UTC days as YYYY-MM-DD, in place of --range. Name both. |
--compare [<range>] | Add the same figures for another range: none, a shift (1h, 24h, 1w, 1m, 1q, 1y), a preset, or the first day of a range as YYYY-MM-DD. A bare --compare takes the shortest shift that does not overlap the range. Without the flag, nothing is compared. |
--workspace <id> | Read only this workspace. Repeat it for more. |
--filter <dimension>=<values> | Keep only these values of one dimension, separated by commas. Repeat it for more dimensions. A filter counts the share of each run that matches. |
--bucket <size> | The size of one column of the time series in --json: hour, day, week, or month. It follows the range's length by default. |
--json | Print the answer as one line of JSON. |
The output opens with the range, then a table of the 12 largest groups with their spend in dollars, wasted spend, runs, and merged runs. The rest fold into one Other row. The total follows. Runs and merged runs are shares of a run, so a count can hold a fraction. --json also carries each group's key, which is what --filter takes, and the spend in each column of the time series. The command exits 2 on a bad flag and 1 on an API failure.
oxagen spend attribution --group-by operator --range last_month
oxagen spend attribution --group-by model --cross-by effort --range this_quarter --compare
oxagen spend attribution --group-by workspace --from 2026-10-01 --to 2026-10-14 --filter model=claude-opusoxagen cost: project model cost
oxagen cost --in <tokens> --out <tokens> [-m <slug>] [--json]
oxagen cost --rates [--json]Prices a token workload against the rate card built into the CLI. With no -m, --model, it compares every priced model, cheapest first, and reports the spread. With one, it projects that model alone. --rates prints the card.
This is a projection, not an observation. It makes no network call and needs no credential. For what was spent, use oxagen budget show (period-to-date burn) or oxagen run turns <run-id> (spend per turn of one run). For the rates Oxagen prices recorded runs at, use oxagen price list.
oxagen cost --in 200000 --out 40000
oxagen cost --in 200000 --out 40000 -m anthropic/claude-sonnet-5 --json
oxagen cost --ratesoxagen price: negotiated rates
oxagen price list [--at <instant>] [--include-scheduled] [--one-per-model] [--json]
oxagen price set --provider <provider> --model <model> --token-class <class> --usd-per-million <usd> [--additional-rate <class=usd>]... [--alias <model>]... [--effective-from <instant>] [--json]
oxagen price remove --provider <provider> --model <model> --token-class <class> [--region <region>] [--at <instant>] [--scheduled-entry-id <id>] [--confirm-unpriced] [--json]The price book holds the rates Oxagen uses to price recorded runs for spend reports and budgets. Oxagen bills a model call on its own key in credits by the call's size, not from this book. A negotiated rate is your organization's own price for one model and one token class, and it wins over the provider's list price. oxagen cost never reads this book.
| Subcommand | Description |
|---|---|
list | Lists the prices in force now, or at --at. --include-scheduled adds your organization's future negotiated rates. --one-per-model lists one row for each model. |
set | Sets a negotiated rate. The new rate closes the one it replaces, and runs priced earlier keep the old rate. |
remove | Ends a negotiated rate, so the model goes back to its list price. Nothing is deleted: the rate stops applying at --at, or now. |
| Flag | Description |
|---|---|
--provider <provider> | Required for set and remove. The provider, such as anthropic. |
--model <model> | Required for set and remove. The model id, such as claude-sonnet-5. |
--token-class <class> | Required for set and remove. One of input_uncached, cache_read, cache_write_5m, cache_write_1h, output, reasoning, server_tool_request, embedding_input, rerank, image, video_second, or sandbox_second. |
--usd-per-million <usd> | Required for set. The price in US dollars per 1,000,000 units, with at most six decimals. Write 2.40, not 2400000. |
--additional-rate <class=usd> | set only. Prices another token class in the same write, such as output=12. Repeat it for more classes. Name each class once. |
--alias <model> | set only. Another model id this rate also prices. Repeat it for more ids. |
--effective-from <instant> | set only. The RFC 3339 time the rate starts. Defaults to now. |
--at <instant> | list: the RFC 3339 time to read prices at. remove: the time the rate stops. Both default to now. |
--include-scheduled | list only. Also list future negotiated rates. |
--one-per-model | list only. List one row for each provider and model in place of a row for every token class. |
--region <region> | remove only. The region of the rate to end. Leave it out for a rate that applies everywhere. |
--scheduled-entry-id <id> | remove only. Cancels this one scheduled rate and keeps the rates before and after it. |
--confirm-unpriced | remove only. Ends the rate even when no list price or other rate covers the class. Without it, Oxagen refuses, because the class would have no price. |
--json | Print the result as JSON. |
set and remove need an organization Owner or a member with the Compliance and Billing role. The command exits 2 on a bad flag and 1 on an API failure.
oxagen price set --provider anthropic --model claude-sonnet-5 --token-class input_uncached --usd-per-million 2.40 --additional-rate output=12oxagen tier: model tiers
oxagen tier list [--all] [--json]
oxagen tier add --name <name> --guidance <text> [--slug <slug>] [--rank <n>] [--json]
oxagen tier update <tier> [--name <name>] [--guidance <text>] [--rank <n>] [--default] [--shared-key on|off] [--json]
oxagen tier archive <tier> [--json]
oxagen tier model <tier> <harness> <model|none> [--json]A model tier is a level of model. Every organization starts with four tiers, Level 1 to Level 4, and sets the model each harness runs on each one. Each tier has a rank, where 1 is the lightest, and guidance that says when to choose it. Triage records a tier on each work item, and dispatch starts the agent on that tier's model. A tier is named by its slug, such as level-2, or by its id.
| Subcommand | Description |
|---|---|
list | Lists the tiers in rank order with each harness's model. --all adds archived tiers. |
add | Adds a tier at --rank, or after the heaviest. The tiers at that rank and above move up one. |
update | Renames a tier, rewrites its guidance, or moves it to --rank. --default makes it the tier stella runs on when a turn names none. --shared-key off makes your organization's own model key pay for its stella turns, and on gives them back to Oxagen's shared key. The slug does not change. |
archive | Archives a tier. Work items and runs that name it keep it, and the tiers above it move down one. |
model | Sets the model a harness runs for a tier. The harness is claude-code, codex, cursor or stella. none clears it. |
A model that ends in *, such as claude-opus-*, names the newest release of that family, and a run resolves it when it starts. Every member can list the tiers. Only the organization Owner can change them. The command exits 2 on a bad flag and 1 on an API failure.
oxagen tier model pro codex 'gpt-5.*'oxagen billing: billing statements
oxagen billing statement --period <week|month|quarter|year|custom> [--anchor <date>] [--from <instant> --to <instant>] [--format summary|csv|html] [--out <file>] [--top <n>] [--page-size <n>] [--json]Reads or exports your organization's billing statement for one period. See Billing statements for what a statement holds.
| Flag | Description |
|---|---|
--period <period> | Required. week, month, quarter, year, or custom. |
--anchor <date> | A UTC date inside the week, month, quarter, or year, written YYYY-MM-DD. Defaults to today. |
--from <instant> | With custom: the first instant of the period, in RFC 3339. |
--to <instant> | With custom: the first instant after the period, in RFC 3339. It must be more than 48 hours after --from. |
--format <format> | summary, the default, csv, or html. csv lists every counted agent action. |
--out <file> | Writes csv or html to this file instead of standard output. |
--top <n> | With summary: the rows in each breakdown, 1 to 100. |
--page-size <n> | With csv: the rows fetched per request, 1 to 50000. |
--json | Print the result as JSON. |
The command needs an organization Owner or a member with the Compliance and Billing role. It exits 2 on a bad flag and 1 on an API failure.
oxagen billing statement --period month --anchor 2026-09-01 --format csv --out september.csvoxagen findings: costed findings
oxagen findings list [--run <run-id>] [--status open|applied|dismissed] [--level tool|agent|operator|workspace] [--subject <key>] [--kind <kind>] [--cursor <cursor>] [--json]A finding is a costly pattern in the workspace's runs, such as a retry loop, with what fixing it would save. list orders the findings by the money at stake, 50 to a page. With --run, it lists only the findings that cite that run, with the frames each one cites.
| Flag | Description |
|---|---|
--run <run-id> | Only findings that cite this run. |
--status <status> | open, the default, applied, or dismissed. |
--level <level> | tool, agent, operator, or workspace. |
--subject <key> | An agent key, an operator id (prn_…), a tool name, or the workspace id. |
--kind <kind> | One finding kind, such as retry_loops. |
--cursor <cursor> | The cursor the previous page printed. |
--json | Print the result as JSON. |
The command exits 2 on a bad flag.
oxagen findings list --level agent --kind retry_loopsoxagen graph: knowledge graph
oxagen graph search -q <text> [-l <labels>] [-n <n>] [--json] [--quiet]search runs a semantic (vector) search across the workspace's knowledge graph through search_graph. -q, --query is required. -l, --labels narrows the search to a comma-separated list of entity labels, such as Issue,PullRequest. -n, --limit takes 1 to 50 and defaults to 10. --json prints one JSON line, which is also the default when standard output is a pipe. --quiet hides the progress lines on standard error. See Knowledge graph from the CLI.
oxagen graph: code graph
oxagen graph init [path] [--force] [--json]
oxagen graph status [--json]
oxagen graph rebuild [path] [--json]
oxagen graph stop [--purge]
oxagen graph upload [--coverage <source=pattern>]... [--test-report <source=pattern>]... [--runtime <source=pattern>]... [--schema-dump <source=pattern>]... [--infra-plan <source=pattern>]... [--api-spec <source=pattern>]... [--environment <name>] [--api-url <url>] [--fail-on-unconnected]| Subcommand | Description |
|---|---|
init [path] | Gives each agent on this machine Oxagen's MCP entry, then builds the code graph of the working tree at path, or the current folder. Needs an enrolled machine. --force builds even when the tree matches the last build. |
status | Shows every code graph built on this machine. |
rebuild [path] | Builds the code graph again, even when the tree has not changed. |
stop | Stops the local code graph server. The next code graph call starts it again. --purge also deletes ~/.oxagen/codegraph, which holds every local graph and the grammar pack. |
upload | Runs in CI. Uploads coverage, test reports, runtime profiles, schema dumps, infrastructure plans, and API specs for the commit the pipeline ran on. It signs in with the CI provider's OpenID Connect token and needs no login. Each report flag takes source=pattern and can repeat. --environment names the deployed environment a runtime profile or schema dump came from. --api-url names the Oxagen API to upload to, on oxagen.sh or a subdomain. --fail-on-unconnected fails when no workspace holds the repository. |
--json prints the result as JSON. Use oxagen graph in scripts and CI jobs. The oxagen codegraph command has been removed. See Code graph from the CLI.
oxagen memory: workspace memories
oxagen memory list [--state <states>] [--harness <harness>] [--agent <record-id>] [--repository <repo>] [--type <type>] [--limit <n>] [--offset <n>] [--json]
oxagen memory show <id> [--json]
oxagen memory promote <ids...> [--one-record] [--statement <text>] [--kind <kind>] [--force <force>] [--effect require|forbid] [--repo <repo>]... [--workspace] [--no-suggest] [--no-same-text] [--json]
oxagen memory dismiss <ids...> [--reason covered|wrong|one_off|other] [--restore] [--json]
oxagen memory drop <number> <path> [--json]
oxagen memory import <files...> [-y, --yes] [--json]The memories agents wrote in their harnesses, which Oxagen collects from enrolled hosts. See Memory from the CLI.
| Subcommand | Description |
|---|---|
list | Memories ranked by uses, one row per group of memories that say the same thing. --state takes a comma list of waiting, in_pr, promoted, dismissed, and retired, and defaults to waiting,in_pr. --harness takes claude-code, codex, cursor, stella, or claude-desktop. --agent takes the ID of the agent that wrote them. --repository takes a repository, such as github.com/acme/api. --type takes a Claude Code memory type: user, feedback, project, or reference. --limit sets the groups per page and defaults to 50. --offset skips groups. |
show <id> | One memory with its full text, its source, the runs that used it, and its memory PR. |
promote <ids...> | Promotes waiting memories into draft steering records on the open memory PR, or opens one. Each id becomes one record, unless --one-record cites every id in one record. --statement sets the record's text and defaults to the first memory's statement. --kind takes business-rule, code-rule, constraint, procedure, fact, preference, or memory. --force takes must, should, may, or info. Oxagen suggests the kind and the force unless you name them or pass --no-suggest. --effect takes require or forbid, and a constraint needs one. --repo scopes the record to a repository; repeat it or use commas for more. --workspace scopes it to the whole workspace. --no-same-text cites only the ids you give, not the other waiting memories that say the same thing. |
dismiss <ids...> | Sets memories aside so the curator does not propose them again. --reason takes covered, wrong, one_off, or other. --restore brings dismissed memories back to waiting. |
drop <number> <path> | Takes one proposed record out of the open memory PR with that number. When the PR merges, the record's statements are rejected and its memories wait again. |
import <files...> | Reads Markdown files into steering records, with a kind and a force for each statement. It previews unless you pass -y, --yes, which opens one steering PR. Records that conflict with a published record are left out. |
--json prints the result as JSON.
oxagen memory list --harness claude-code --limit 20oxagen init: link a project
oxagen init [--org <slug>] [--workspace <slug>] [--no-link] [--json]Resolves an org and workspace and saves the pair in ~/.config/oxagen/config.json. Every command on this machine then addresses that workspace. --org and --workspace name the pair, so init runs without prompting, in CI or any shell without a terminal. Without them, init keeps the pair that oxagen login or an earlier init saved. With no pair saved, it picks the only option or asks you to choose. It then checks the workspace for a GitHub connection and, in an interactive terminal, offers to create one so the graph has a source to ground on. --no-link skips that step and cannot be combined with --org or --workspace.
init writes no file into the directory you run it in. A checkout of a repository connected to a workspace holds only that repository's files. A wrapped run takes its workspace from the machine's enrollment and the run's git remote. Nothing reads a .oxagen/workspace.json that an earlier CLI wrote into a checkout, so you can delete it.
init is idempotent. Running it again keeps the saved pair. When --org or --workspace names a different pair, init saves that pair and prints the one it replaced.
Last, init reports the directory to Oxagen, and it appears in the Working copies panel of the Repositories tab in Workspace settings with its machine, path, repository, branch, and head commit. Inside a git repository, the report names the repository root, whatever subdirectory you run it from. The machine is named by a hash of a random id kept in ~/.config/oxagen/machine-id, never a hardware serial. A hash is a short code made from the content, and any change gives a different code. If the report fails, init prints one warning and still succeeds. With --json, the result carries the recorded workingCopy id or the error.
With --org or --workspace, init exits 1 when it cannot link the pair you named.
oxagen check: steering PR checks
oxagen check [paths...] [--base <ref>] [--refresh] [--json]Run check inside a clone of a steering repo to see what the steering PR check will report before you push. It runs the same checks on your working tree. The tree is every file git tracks or would add among AGENTS.md, CLAUDE.md, README.md, .gitattributes, workspace.toml, and the files under agents/, steering/, tools/, and policy/. The checks compare the tree with the production branch: --base <ref>, else origin/HEAD, else origin/main. With no base, they read the tree whole, as for a first publish.
Paths narrow the report. The checks still read the whole tree, and the report keeps the findings in the files and folders you name.
Some checks read more than the tree. The hash, conflicts, and references checks compare your change with the records the workspace has published. The references check also looks up each runtime, operator, reviewer group, and credential your repo names. check fetches the published index and this context from Oxagen in one call and caches the answer for ten minutes. --refresh fetches it again. The cache keeps one answer for each API address, organization, workspace, and login, so a run after oxagen login to another workspace fetches again.
- A workspace repo reads the workspace its
workspace.tomlnames. Your login must be for that workspace. If it is for another one,checkstops withscope_mismatchand exits 2. Runoxagen login --org <org> --workspace <workspace>for the workspaceworkspace.tomlnames, or fixworkspace.toml. - An organization repo reads the context of the workspace the CLI has selected. It reads no index, because no organization version is published yet, so its records check as a first publish.
Oxagen does not store member handles, teams, or reviewer group slugs yet. Until it does, the references check reports each agent's operator and each reviewer group as missing.
Two checks do less on your machine. The settings check is skipped, and the compile check does not evaluate the Cedar policies.
--json prints one finding per line on stdout and the result line on stderr.
The command exits 0 when no finding is an error and 1 when at least one is. It exits 2 when the checks cannot run: outside a steering repo or a git clone, with a --base that names no commit, when your login is for another workspace than the one check reads, or when check cannot fetch the index and context, for example before you log in.
Old steering gate hooks
Earlier CLI versions could install a hook that ran oxagen steering gate before each prompt. That command no longer exists, so a hook that still calls it fails on every prompt. Oxagen serves each wrapped run the steering on its steering repo's production branch.
Delete the entry from each harness you installed it in. Search each file for oxagen steering gate to find it.
| Harness | File | Entry |
|---|---|---|
| Claude Code | <project>/.claude/settings.json, in each project that has the hook | The UserPromptSubmit entry that runs oxagen steering gate --harness claude-code |
| Codex | $CODEX_HOME/hooks.json, by default ~/.codex/hooks.json | The UserPromptSubmit entry that runs oxagen steering gate --harness codex |
| Cursor | ~/.cursor/hooks.json | The beforeSubmitPrompt entry that runs oxagen steering gate --harness cursor |
| Stella | $STELLA_HOME/stella.toml, by default ~/.stella/stella.toml | The block from the # >>> oxagen steering gate line to the # <<< oxagen steering gate <<< line, both lines included |
A Stella install with no stella.toml wrote the hook to settings.json in the same folder. In that file, delete the UserPromptSubmit entry that runs oxagen steering gate --harness stella.
oxagen steering import: Markdown files into steering
oxagen steering import [paths...] [--harness claude-code|codex|cursor] [--as records|policies|memories] [-y, --yes] [--json]Reads Markdown files into steering records, Cedar policies, or memories. Pass files, folders, a harness, or any mix of them. The command searches a folder for .md, .markdown, .mdx, and .mdc files. A .mdc file is a Cursor rule. The search skips node_modules and every folder whose name starts with a dot, except the harness folders: .claude, .codex, .cursor, .agents, .github, .windsurf, and .clinerules. In those it takes only the harness files Oxagen knows, such as Cursor rules, skills, commands, and subagent files. A skill comes with every file in its folder. Naming a harness folder, such as repo/.claude, reads it the same way as naming repo. The command takes a file you name as given.
--harness also reads your own harness folders on this machine:
claude-code: theskills,commands, andagentsfolders andCLAUDE.mdin$CLAUDE_CONFIG_DIR, or in~/.claudewhen that variable is unset.codex: the skills in$CODEX_HOME/skills, or in~/.agents/skillswhen that variable is unset, andAGENTS.override.mdor elseAGENTS.mdin$CODEX_HOMEor~/.codex.cursor:~/.cursor/skillsand~/.cursor/commands. Cursor keeps its user rules in its settings, not in a file, so the command reads no instruction file for it.
Skills, commands, and subagent files from those folders become records for the whole workspace, because a folder on your laptop belongs to no repository. Your instruction file, such as ~/.claude/CLAUDE.md, becomes your own memories. So does any CLAUDE.local.md the command finds. A memory steers nothing until a person promotes it. The command leaves out a skill folder Oxagen wrote for a session.
oxagen steering import --harness claude-code # preview your Claude Code folders
oxagen steering import --harness claude-code --yes # open the steering PR and store the memoriesWithout --as, each file takes the target its text implies. A file with a fenced cedar block becomes a policy file at policy/<file-name>.cedar, the import skips a README or index file, and it splits any other file into records. --as records, --as policies, or --as memories sets one target for every file. --as memories splits each file into statements the same way, and each statement becomes a memory.
oxagen steering import AGENTS.md docs # preview
oxagen steering import AGENTS.md docs --yes # open the steering PR
oxagen steering import notes --as memories --yes # store the memoriesThe preview lists each record with its kind, its force, its source line, and any duplicate or conflict with a published record, then each policy file with its statements and any issue, then each memory with its source line. It writes nothing. --yes opens one steering PR on steering/import-<date> with every record and policy marked add. It leaves out a record that conflicts with a published record and a policy file with an issue, and names each one. Nothing steers an agent until the PR merges.
--yes stores every memory marked add as a waiting memory, with import:<file>#L<line> as its source. It names no agent, because a person imported it. It leaves out a memory that repeats a waiting memory or a statement a person rejected, and names each one. A memory steers no agent until a person promotes it into a steering record. An import of memories alone opens no PR.
The command sends files in calls of 25 and then compares the rows of every call. A statement two calls both hold is marked a duplicate, and when two files in different calls become the same policy file, the later one is skipped. The command skips a file over 100,000 characters. One steering PR holds at most 299 records and policy files, so --yes refuses an import that marks more add. The command calls parse_markdown_import and commit_markdown_import.
oxagen repo: workspace repositories
oxagen repo list [--json]
oxagen repo link <owner/name> [--json]
oxagen repo unlink <binding-id> [--json]
oxagen repo tree [--json]
oxagen repo branch <binding-id> <branch> [--json]
oxagen repo governance [--json]
oxagen repo scan <owner/name> [--gitlab] [--json]
oxagen repo commit-summaries <owner/name> on|off [--gitlab] [--json]A workspace has one steering repository, which holds its steering records, and any number of linked repositories its agents work on. The steering repository's workspace.toml lists the linked ones, so linking and unlinking open a steering PR that edits it. The link takes effect when that PR merges.
| Subcommand | Description |
|---|---|
list | Lists every repository the workspace binds, the steering repository first, with each one's approved default ref and binding id (rpb_…). |
link <owner/name> | Opens the steering PR that links a GitHub repository. The workspace's GitHub App installation must reach it. |
unlink <binding-id> | Unlinks a linked repository. When workspace.toml lists it, a steering PR removes it. The steering repository is refused. |
tree | Reads what the workspace's steering repository holds on its production branch, from GitHub at the time you run it: the head commit, the governance mode, and every steering file. A linked repository holds no Oxagen files, so tree takes no binding id. |
branch <binding-id> <branch> | Confirms or changes the repository's production branch. The branch must exist on GitHub. |
governance | Makes no change. The governance mode decides who may merge a steering PR in the workspace, and only a person signed in to Oxagen can change it. The command prints the General tab of Workspace settings, which holds the governance mode editor, opens it when you run it at a terminal, and exits 1. It still takes --mode, --workspace and --apply-now and reads none of them. |
scan <owner/name> | Lists the harness files on a repository's default branch. See oxagen repo scan. |
rules | Drafts, replays, lists, confirms, switches, and removes a repository's rules. See oxagen repo rules. |
commit-summaries <owner/name> on|off | Turns stella's summaries of the repository's merged commits on or off. The CI tab shows each summary under its commit's run on the default branch. Off, the commit's line counts are still recorded. Pass --gitlab for a GitLab project. |
link, unlink, branch, and commit-summaries need an organization Owner or the workspace's Admin. The command exits 2 on a bad argument and 1 on an API failure.
oxagen repo list
oxagen repo link acme/payments-api
oxagen repo branch rpb_01k5ru4a8x releaseoxagen repo scan: harness files in a repository
oxagen repo scan <owner/name> [--gitlab] [--json]Lists the files agent harnesses read on a repository's default branch. These are instruction files such as CLAUDE.md and AGENTS.md, rule files for Cursor, Windsurf and Cline, .github/copilot-instructions.md, skills, commands, subagent files, settings files and MCP configs. The repository doesn't have to be linked yet. On GitHub, the workspace's GitHub App installation must reach it. Pass --gitlab to scan a GitLab project the workspace has connected, named by its project path.
The command prints one row per file with its kind, path, harness and size. A skill is one row, its SKILL.md, with a count of the files in its folder. A file under fixtures/, test/, tests/, __tests__/, examples/ or node_modules/ is marked as a fixture. A symlink at a harness path is listed with the path it points to, and that path is listed on its own row. When GitHub cuts a large tree short, the scan reads only the folders harnesses use and says the list may be missing a nested CLAUDE.md or AGENTS.md. --json prints the full answer, with each file's blob sha.
The scan writes nothing. It needs the role linking does: an organization Owner or the workspace's Admin. The command exits 0 on success, 1 on an API failure and 2 on a bad argument. It calls scan_repository_config.
oxagen repo rules: repository rules
oxagen repo rules list <owner/name> [--gitlab] [--json]
oxagen repo rules confirm <owner/name> --file <drafts.json> [--scope repository|workspace] [--mode merge|replace] [--gitlab] [--json]
oxagen repo rules state <rule-id> on|watch|off [--json]
oxagen repo rules remove <rule-id> [--json]
oxagen repo rules process <owner/name> --text <words> [--gitlab] [--json]
oxagen repo rules draft <owner/name> --text <words> [--out <file>] [--gitlab] [--json]
oxagen repo rules draft-files <owner/name> [--out <file>] [--gitlab] [--json]
oxagen repo rules preview <owner/name> --file <rule.json> [--gitlab] [--json]A rule says what Oxagen does on its own when something happens on a repository: a pull request opens, CI fails, a review finds something, or a deploy breaks. Each rule is an event, its conditions, and an action, such as an agent run that fixes the failing checks.
| Subcommand | Description |
|---|---|
list <owner/name> | Lists the rules in force on the repository, its own and the workspace's, with each rule's id (arl_…), state, and how many times it fired in the last 7 days. |
confirm <owner/name> | Puts the rules in a JSON file in force. The file holds an array of rules, or an object with rules. A rule with ruleId changes that rule and takes its next version. --scope workspace stores each rule once for every repository. --mode replace also removes the scope's rules the file leaves out. |
state <rule-id> on|watch|off | Turns a rule on or off, or to Watch only. A rule in Watch only records what it would have done and does nothing. |
remove <rule-id> | Removes a rule. It stops firing at once, and the record of each time it fired stays. |
process <owner/name> | Saves the words about the repository's pull request process that stella drafts rules from. An empty --text clears them. Saving the words changes no rule. |
draft <owner/name> | stella drafts rules from your own words about the pull request process, each with the words it came from and a reason. Nothing goes into force. --out writes the drafts to a file that confirm --file reads, so you can edit them first. When stella cannot run, an offline drafter reads the words with no model and the output says so. |
draft-files <owner/name> | stella drafts rules from the repository's AGENTS.md, CLAUDE.md, CONTRIBUTING.md, CODEOWNERS, CI workflows and, on GitHub, the checks the default branch requires. Each draft names its file and line and starts in Watch only. --out works as for draft. |
preview <owner/name> | Replays one rule over the repository's last 30 days of recorded pull requests, pushes, CI runs and reviews: how many times it would have fired, the runs it would have started, and what those runs would have cost at recorded prices. --file holds a draft's rule, or its event, conditions and action. |
list needs a role that reads the workspace's repositories. confirm, remove, process, and turning a rule on or off need an organization Owner or the workspace's Admin. A workspace Member may switch a rule to Watch only. Pass --gitlab to name a GitLab project by its path. The command exits 2 on a bad argument and 1 on an API failure. draft, draft-files, and preview need an organization Owner or the workspace's Admin, and the two drafts bill as Stella chat spend. It calls list_automation_rules, confirm_automation_rules, set_automation_rule_state, delete_automation_rule, save_repository_process, draft_automation_rules, draft_automation_rules_from_files, and preview_automation_rule.
oxagen repo rules list acme/payments-api
oxagen repo rules state arl_8k2m4q watch
oxagen repo rules draft acme/payments-api --text "Every draft gets a review" --out drafts.json
oxagen repo rules confirm acme/payments-api --file drafts.jsonoxagen steering findings: instruction file findings
oxagen steering findings [--json]Lists the findings in the workspace's linked code repositories. A finding is a statement in an instruction file, such as AGENTS.md, that repeats or contradicts an active steering record. The Oxagen check stores each statement it flags when it runs on a linked repository's pull request. findings compares those statements with today's records, so a statement that matches no record now drops off the list.
The command prints one table for each repository that has a finding. Each row gives the finding's id (crf_…), its kind, the file and line, the record it matches, the pull request the check read, and the suggestion opened from it. The kind is repeat when the statement says what the record says, and contradiction when it says the opposite. --json prints the full answer, with each statement's text and links to the line and the pull request.
The command exits 0 on success and 1 on an API failure. It calls list_code_repository_findings.
oxagen steering promote: a contradiction into a suggestion
oxagen steering promote <finding-id> [--json]Turns one contradicting statement into a suggestion for the record it contradicts. Pass the crf_… id that oxagen steering findings shows. The suggestion is a new version of the record, with the statement as its text and the pull request and line as its evidence. The record keeps its record ID, kind, force, and scope. The suggestion's steering PR opens at once and runs the six checks. Nothing steers an agent until a person merges the PR.
The command prints the suggestion id (prp_…), the steering PR, and the status of its checks. Oxagen refuses the request and writes nothing in these cases:
| Reason | When |
|---|---|
already_in_steering | The statement repeats its record, so steering already says it. |
finding_resolved | The statement matches no record now. |
statement_too_long | The statement is over 2,000 characters. |
already_proposed | The suggestion opened from this finding is still open. |
lineage_pr_open | Another PR is open on the record. |
The command exits 0 on success, 1 on a refusal or an API failure, and 2 when the id does not start with crf_. With --json, the error line on stderr carries the reason as its code. The command calls promote_instruction_to_steering.
oxagen steering restore-block: a steering PR's managed block
oxagen steering restore-block <suggestion-id> <AGENTS.md|CLAUDE.md|README.md> [--json]Puts Oxagen's managed block back in one file of an open steering PR. In a steering repo, AGENTS.md, CLAUDE.md, and README.md each hold a managed block: the lines between two marker lines that only Oxagen writes. The owned check fails a steering PR that changes one.
Pass the prp_… id of the suggestion whose steering PR holds the file, then the file's name. The command writes one commit on the PR's branch. The block becomes the one on the production branch, and every line outside the block stays as it is. If the PR deleted the file, the whole file comes back. If the PR removed only the block, the block goes back at the top. The six checks then run again on the new commit. The command prints the commit and the status of the checks.
Oxagen refuses the request and writes nothing when the PR is not open, and in these cases:
| Reason | When |
|---|---|
block_intact | The block at the PR's head already matches the production branch. |
no_managed_block | The production branch holds no block in the file. |
no_managed_blocks | The repository is not a steering repo. |
The command exits 0 on success, 1 on a refusal or an API failure, and 2 on a bad argument, such as an id that does not start with prp_ or a file with no managed block. With --json, the error line on stderr carries the reason as its code. The command calls restore_managed_block.
oxagen steering draft: a record from your words
oxagen steering draft <words...> [--json]
oxagen steering save --record-id <id> --kind <kind> --force <force> --statement "<text>" --rationale "<text>" [--label "<text>"] [--effect require|forbid] [--open | --merge] [--json]draft drafts one steering record from what you type. stella fills the label, the record ID, the kind, the force, the statement, and the rationale, and gives a reason for the kind and the force. The command prints each field, then the save command that holds those exact fields. It saves nothing. Each draft is billed as Stella chat spend.
Read the fields, change any of them in the command, and run it to save the record as a new suggestion (prp_…). save never drafts again, so it saves the fields you confirmed. A field stella left blank shows as a placeholder, such as <statement>, that you fill in first. A blank rationale takes your own words. save never revises the record that already holds the record ID.
Flag (save) | What the command does after it saves |
|---|---|
| none | Nothing more. Merge the suggestion later with oxagen steering merge. |
--open | Opens its steering PR in the steering repo. The six checks run before the command returns. |
--merge | Opens its steering PR, then merges it once every check passes. The record is published, and Oxagen records the merge before the command returns. |
With --json, draft prints the draft, and save prints the suggestion, the steering PR, and the merge, as far as the command got. When a later step fails, save --json still prints the suggestion it saved, so a script can retry the merge or dismiss it. save exits 2 on a missing or unknown field, and refuses --effect on any kind but constraint. The commands call draft_record and propose_record, then open_steering_pr and merge_steering_pr when a flag asks for them.
oxagen steering draft "agents never force push to main"
oxagen steering save --record-id no-force-push --label "No force push" --kind constraint --force must --effect forbid \
--statement "Never force push to main." --rationale "A force push rewrote main twice this month." --mergeoxagen steering suggestions: open suggestions and waiting memories
oxagen steering suggestions [--json]Lists the open suggestions with each one's record ID, kind, status, steering PR, and statement, then the waiting memories. These are the two lists on the Suggestions tab of the Steering page. Act on a suggestion with oxagen steering merge or oxagen steering dismiss, and on a memory with oxagen memory promote or oxagen memory dismiss. The command calls list_proposals and list_workspace_memories.
oxagen steering merge: one suggestion's steering PR
oxagen steering open <suggestion-id> [--json]
oxagen steering merge <suggestion-id> [--json]
oxagen steering dismiss <suggestion-id> [--reason <text>] [--json]open opens the suggestion's steering PR, or runs the six checks again on the PR that is open, and prints each check that failed. merge merges the PR and publishes the record. When the checks have not passed, merge opens the PR or runs the checks first, and stops without merging when one fails. dismiss closes the suggestion and its steering PR, and deletes the PR's branch. A merged suggestion cannot be dismissed. To undo one, run oxagen context revert.
The workspace's governance mode decides who may merge. In solo mode Oxagen merges each steering PR on its own once its checks pass, and any workspace member may also merge one, the author included. In team mode an organization Owner or a workspace Admin merges, and in regulated mode an organization Owner merges. In both of those modes the merger cannot be the author, and the PR needs an approval from a member who is not the author.
A merge needs a person's authority. The key oxagen login saves carries no delegated decisions, so Oxagen refuses its merge with decision_delegation_required. To merge from the CLI, a person creates a workspace API key in Oxagen with an expiry and chooses merge_steering_pr under Delegated decisions. Set OXAGEN_API_TOKEN to that key, as in OXAGEN_API_TOKEN=ox_… oxagen steering merge prp_…. The CLI keeps the organization and workspace your login saved, and merges for that person until the key expires or is revoked.
The commands exit 0 on success, 1 on a refusal or an API failure, and 2 when the id does not start with prp_. With --json, the error line on stderr carries the reason as its code. The commands call get_steering_pr, open_steering_pr, merge_steering_pr, and dismiss_proposal.
oxagen context: steering suggestions
oxagen context propose --lineage <id> --kind <kind> --force <force> --scope workspace|repository --statement "<text>" --rationale "<text>" [--effect require|forbid] [--json]
oxagen context revert <suggestion-id> [--json]propose records a suggestion for one steering record: the text the record should become, and why. It opens no pull request. Open its steering PR with oxagen steering open, and merge it with oxagen steering merge or on the Steering page. The merge publishes the record. Every propose flag except --effect and --json is required.
Flag (propose) | Description |
|---|---|
--lineage <id> | The record ID: the file name, without its extension, under .oxagen/rules/. |
--kind <kind> | rule, constraint, procedure, fact, memory, or preference. |
--force <force> | must, should, may, or info. |
--scope <scope> | workspace or repository. |
--statement <text> | The record's claim, in one sentence. |
--rationale <text> | Why the record should be published. |
--effect <effect> | require or forbid. For a constraint only. |
--json | Print the result as JSON. |
revert opens a steering PR that undoes a merged one, named by the merged suggestion's id (prp_…). The revert merges after its own review, under the workspace's governance mode. It calls revert_steering_pr.
The command exits 2 on a bad flag and 1 on an API failure.
oxagen context propose --lineage deploy-window --kind constraint --force must --scope workspace --effect forbid --statement "Agents do not deploy on Fridays." --rationale "Weekend incidents have no on-call cover."
oxagen context revert prp_01k5ru4a8xoxagen tools: MCP servers and observed schemas
oxagen tools migrate [--json]
oxagen tools approve-schema <tlv_id> --hash <sha256> [--json]migrate opens the pull request that moves the workspace's connected MCP servers into its steering repo. When the pull request merges, the next publish moves each server. Running the command again prints the pull request already open, or says the workspace has already migrated. It needs an organization Owner, and it calls migrate_tools_to_steering.
approve-schema approves the output schema the gateway inferred for a tool whose server declares none. Until someone approves it, the gateway checks each output of the tool only for size and type, and every run that calls the tool says so in its record. Pass the hash list_tool_versions reports in observedSchema.hash: when an output changed the schema after you read it, the hash no longer matches and nothing is approved. It needs an organization Owner or the workspace's Admin, and it calls approve_observed_schema.
Both commands exit 1 on an API failure.
oxagen workspace: connect this machine
oxagen workspace list [--json]
oxagen workspace current [--json]
oxagen workspace link [<org/workspace>] [--org <slug> --workspace <slug>] [--save] [--json]
oxagen workspace use [<org/workspace>] [--org <slug> --workspace <slug>] [--keep-running] [--no-wait] [--json]
oxagen workspace connect [<org/workspace>] [--workspace <org/workspace>] [--harness <names>] [--machine-name <name>] [--force] [--yes] [--json]A workspace is named org/workspace, the way a repository is owner/repo. oxagen workspace connect oxagen/gtm connects this machine to the gtm workspace of the oxagen organization.
list shows every workspace you belong to, with your role, a * beside the active one, and the harnesses this machine reports to it. A harness marked standby reports to a workspace this machine takes no sends from, and a workspace marked linked is one you remembered with link. It reads this machine's enrollments from the recorder's own files. If one organization's workspaces cannot be read, list shows the rest, names the one it could not read, and exits 1. --json gives each workspace's organization and workspace ids beside its slugs. current shows the active workspace, whether it came from your config or from OXAGEN_ORG_ID and OXAGEN_WORKSPACE_ID, and the workspace this machine takes sends from when that is another one.
link remembers a workspace on this machine. With --save it also becomes the workspace the CLI works in, the one every org-scoped command addresses. Neither form changes the workspace this machine takes sends from: that is use.
A machine takes sends from one workspace at a time. Northwind / Platform and Contoso / Platform can both have agents on your laptop, and use picks the one that gets work. Its agents in every other workspace stop taking sends, and a send they had not started ends with the reason, so its work item can be sent again. Runs already going keep reporting to their own workspace. Each agent in the chosen workspace asks Oxagen for a new connection, which ends any send queued for it before the switch, and it takes sends once its recorder checks in. use waits up to a minute for that, or returns at once with --no-wait. While work still runs for a workspace the machine leaves, use asks first on a terminal, and without one it refuses until you stop the work or pass --keep-running. When Oxagen refuses the connection, such as for an agent whose enroller left the organization, the machine takes no sends from any workspace, the CLI keeps its active workspace, and use exits 1. use also saves the workspace as the one the CLI works in, the way oxagen login --org --workspace does. No workspace command prints your token.
connect looks for Claude Code, Codex, Cursor, and Stella on this machine and asks which to register. Each one you pick becomes an agent of its own. It belongs to you and runs on this machine's runtime. Its name is your last name, the harness, and local: anderson-claudecode-local, anderson-codex-local, anderson-cursor-local, and anderson-stella-local. Your last name is the last word of your display name. With no display name, it is the last part of your email's local name. When another agent in the workspace already holds the agent's short form of that name (its slug), the slug gets a random tail and the name stays the same.
Without a terminal, or with --yes, connect takes every installed harness, or the ones --harness names, and asks nothing. A harness this machine already reports to the workspace is skipped. A harness that reports to another workspace on this machine is refused until you add --force, which moves it. When this machine takes sends from another workspace, the new agents take none until you run oxagen workspace use for theirs. Claude Desktop connects through the MCP server and is not listed. One harness failing does not undo the others: connect prints what the recorder said for the one that failed and exits 1. The first workspace you connect becomes the active one. Later connects keep your active workspace and print the use command that switches it. It needs an organization Owner, as register_machine does.
| Flag | Description |
|---|---|
--workspace <org/workspace> | The workspace, as an alternative to the argument. |
--harness <names> | Register these harnesses: claude-code (or claude), codex, cursor, or stella, as a comma list. Defaults to asking, from the installed ones. |
--machine-name <name> | The machine's host name. Defaults to this machine's. The runtime takes this name. |
--force | Move a harness that reports to another workspace on this machine. |
--yes | Take the installed harnesses without asking. |
--json | Print one result per harness as JSON. The command asks nothing in this mode. |
oxagen config: CLI settings
oxagen config [--json]
oxagen config --key <key> [--json]
oxagen config --key <key> --value <value> [--json]
oxagen config --key <key> --unset [--json]The CLI keeps its settings in ~/.config/oxagen/config.json. With no flags, config lists every key and its value. --key alone reads one key, --value sets it, and --unset clears it.
| Key | Value |
|---|---|
default_workspace_id | The workspace every org-scoped command addresses. Give a workspace slug in the current organization (gtm), an org/workspace name (oxagen/gtm), or a workspace id. Oxagen looks the workspace up before anything is saved, so a name you do not belong to is refused. Saving it also links the workspace on this machine. |
api_url | The Oxagen API the CLI calls. An https URL, or http on localhost or 127.0.0.1. |
app_url | The Oxagen web app the CLI opens. The same rule as api_url. |
default_workspace_id is the same setting that oxagen workspace use and oxagen login --org --workspace save. Setting it here does not move this machine's recorder, so agents on this machine keep taking sends from the workspace they had. Run oxagen workspace use for that. OXAGEN_ORG_ID, OXAGEN_WORKSPACE_ID, OXAGEN_API_URL, and OXAGEN_APP_URL win over the saved values while they are set, and config names each one it finds. config never prints your token.
A bad flag, an unknown key, or a value in the wrong form exits 2 and saves nothing. A workspace Oxagen cannot find exits 1.
oxagen config --key default_workspace_id --value gtm
oxagen workspace link oxagen/gtm --saveoxagen agent: the agent identity
oxagen agent register --name <name> --harness <stella|claude-code|codex|cursor|claude-agent-sdk|custom> --runtime <rtm_id> [--slug <slug>] [--toolbelt <tbt_id>] [--description <text>] [--validity-days <n>] [--json]
oxagen agent status <agent> [--json]
oxagen agent unenroll <agent> [--host <tch_id>] [--reason <text>] [--yes] [--json]
oxagen agent retire <agent> [--reason <text>] [--yes] [--json]
oxagen agent suspend <agent> [--reason <text>] [--json]
oxagen agent resume <agent> [--reason <text>] [--json]
oxagen agent enroll-token <agent> [--ttl-minutes <n>] [--json]
oxagen agent connect --request <token> [--folder <path>] [--yes] [--json]
oxagen agent connect --app claude-desktop<agent> is an agent's id or slug. Without it, status and unenroll act on this machine instead. See oxagen agent on this machine.
register creates the agent through register_agent: one operator on one runtime with one harness, carrying a toolbelt. --name, --harness, and --runtime (an rtm_… id) are required. Without --toolbelt, the agent carries the workspace's All tools belt. The slug comes from --name unless you set --slug, written as lowercase words joined by hyphens. Registration also creates the agent's principal, its default role, its first version, and one long-lived credential. The credential lasts --validity-days days, from 1 to 365, and 180 by default. The command prints it once, and it cannot be recovered. No Oxagen surface accepts that credential yet: the API and the MCP server refuse it as a bearer token. For Claude Code, Codex, Cursor, or stella, run the one-time enroll command from the agent's Enrollment tab to put the agent on a machine. An agent carries no prompt and no definition file.
Registration also accepts custom. Enroll that identity with its token and a local command: oxagen agent enroll --token <token> --harness custom -- /absolute/executable [args...]. Oxagen sends assigned prompts to that command on standard input. The command and its arguments stay on the machine. See Wrap a custom agent.
claude-agent-sdk remains a registration type without a device enrollment adapter. For a process that reports through an existing local enrollment, sign in with oxagen login, enroll the installed wrapped harnesses with oxagen agent enroll --all, then run oxagen agent run --name <process-name> -- <command>. This form sends hooks through a live local enrollment; the collector uses the machine's workspace connection to select the run's owner. --name labels the process and does not select a registered identity.
status reads get_agent: the identity, the runtime it runs on, the toolbelt it carries, its versions, its credentials (prefix and dates, never the secret), the roles on its principal, and the hosts enrolled under its key.
unenroll revokes the agent's live host enrollments through revoke_tacho_enrollment, or one host with --host. Without --host, it asks before it revokes every host, and --yes skips the question. --reason is recorded on the host and in the revoke. From an agent's shell it refuses and changes nothing, since an agent could name itself and revoke its own host.
retire retires the agent through retire_agent. It archives the agent, suspends its principal, and revokes every credential, enrolled machine, and mandate the agent holds. Its runs keep their identity, and nothing is deleted. Retiring frees the agent's runtime and harness for a new agent. It asks first, and --yes skips the question. With no terminal to ask in and no --yes, it exits 2 and retires nothing.
suspend stops the agent through suspend_agent: no governed run starts for it, and its toolbelt reads empty. Its credentials, roles, and machines stay as they are, so resume lets it run again with nothing issued anew. --reason is recorded with the change.
enroll-token mints a single-use enrollment token for the agent through create_enrollment_token, and prints the oxagen agent enroll --token … command to run on the machine. The token works once and expires unused after --ttl-minutes, from 1 to 60 and 30 by default. A new token replaces the agent's earlier unused ones.
An SDK agent's token request is refused with agent_harness_unsupported before any earlier token changes. A custom agent's token command includes the local command template.
connect --request connects this device to a new agent with the request the page shows. It reads the request first and enrolls nothing until you confirm: it prints the agent, the organization and workspace, this device's name, operating system and machine id, and whether the agent type's harness is installed here, then asks you to confirm the workspace and the folder the agent works in (--folder, this one by default). When the request is for another workspace than the CLI's, it names both and asks. When the harness is missing, the type cannot run on a device, or you say no, it tells Oxagen why, so the page can show the next step. Running it again on the device that connected says it is already connected and changes nothing. A request another device answered, one that expired, one a newer request replaced, and one whose agent changed type are refused with what to do. --yes connects without asking, and without a terminal it is required. This form never registers another agent.
connect --app claude-desktop connects Claude Desktop to the local gateway. Claude Desktop is a connected app and is not one of the runnable --harness choices.
register, unenroll, retire, suspend, resume, and enroll-token need an organization Owner. The CLI acts as the person who approved its oxagen login, so that person's role decides.
oxagen agent register --name "Payments bot" --harness claude-code --runtime rtm_01k5ru4a8x
oxagen agent status payments-botoxagen agent enroll: put this machine under Oxagen
Run it on the host. Install the CLI there first with npm install -g @oxagen/cli.
oxagen agent enroll --token <oxe_1time_…> --harness <name> [--api-url <url>] [--credentials brokered|passthrough] [--validity-days <n>] [--port <n>] [--no-service] [--force] [--allow-root]
oxagen agent enroll (--all | --harness <name>) [--token <apiKey>] [--org <slug>] [--workspace <slug>] [--api-url <url>] [--credentials brokered|passthrough] [--validity-days <n>] [--port <n>] [--no-service] [--managed] [--print-managed] [--force] [--verify] [--allow-root]
oxagen agent enroll --harness custom -- /absolute/executable [args...]Enrollment requires exactly one of --all or --harness. The command writes the device key, host credential, and collector service. Wrapped harnesses receive hooks; a custom enrollment saves its launch command. The first form enrolls this machine as a registered agent's host. The second form uses your CLI login or a platform API token. With your CLI login, custom enrollment registers your agent and uses a token bound to that identity. You can also supply a token for an existing custom agent.
| Flag | Description |
|---|---|
--token <token> | A one-time enrollment token (oxe_1time_…) from agent registration, or a platform API token. Without it, the command uses your CLI login. |
--org <slug> | Organization slug. Defaults to the logged-in org. Refused with an enrollment token. |
--workspace <slug> | Workspace slug. Defaults to the logged-in workspace. Refused with an enrollment token. |
--all | Enroll or refresh every detected wrapped harness: Claude Code, Codex, Cursor, and stella. Existing owners keep their identities, ports, and recorded configuration paths. Refused with a one-time enrollment token. |
--harness <name> | Select claude-code, codex, cursor, stella, or custom. A one-time token requires the registered agent's harness. Custom enrollment also requires an executable and arguments after --. An explicit selection changes only that harness's configuration. |
--api-url <url> | The Oxagen API base URL, when it is not the one oxagen login chose. |
--credentials <mode> | For selected harnesses whose model calls reach the local proxy: brokered, the default, puts provider credentials in the gateway's custody and leaves a run token with the harness. passthrough keeps or restores the harness's own credentials. Cursor receives hooks and MCP entries without model routing. |
--validity-days <n> | How many days the enrollment stays valid. Defaults to 180. |
--port <n> | The loopback port for the collector, a whole number from 1024 to 65535. |
--no-service | Install no user service. Run oxagen daemon yourself. |
--managed | Also print the managed settings document for MDM. Refused with an enrollment token. |
--print-managed | Only print the managed settings document, and write no user settings. Refused with an enrollment token. |
--force | Enroll again even if already enrolled. |
--verify | Run one headless turn afterwards in a selected wrapped harness. Refused with an enrollment token. |
--allow-root | Enroll even when the command runs as root. Without it, sudo oxagen agent enroll is refused, because it would write files the user's own agents cannot read. |
The first form is the scripted path of the register flow. The one-time enrollment token is the credential, so no oxagen login is needed. Pass the registered agent's one harness with --harness. Missing or multiple-harness selections are refused before any enrollment file changes or token use, even with --force. The token is shown once on the Agents page, or created through create_enrollment_token, and it expires unused after 30 minutes by default. The control plane resolves the organization, the workspace, and the agent from it, and the host file records what it answered. A token that was already used or has expired is refused (token_used, token_expired). Issue a new one. A machine holds one enrollment per agent. Every agent keeps its files in its own directory, ~/.config/oxagen/tacho/agents/<id>/. On a machine that is already enrolled, a token for a harness that no agent hooks enrolls another agent in a new directory and revokes nothing. A token for a harness that an agent on the machine already hooks is refused: the command exits non-zero, presents nothing, and names the agent and host already enrolled. Pass --force to replace that agent's enrollment with the agent the token names, which is the one case that flag is for. Replacing a live shared enrollment with a token is refused because its other harnesses would lose their enrollment. The other agents on the machine keep their enrollments. See Two agents on one machine. The command also reports the git remote of the directory it runs in. While onboarding is open, Oxagen records the GitHub repository that remote names.
oxagen agent register-machine: get a machine ready
oxagen agent register-machine --harness <claude-code|codex|cursor|stella> [--workspace-slug <slug>] [--machine-name <name>] [--cloud-sandbox] [--enroll] [--ttl-minutes <n>] [--json]Gets a machine ready to wrap one harness through register_machine. The call finds or creates the runtime named after the machine, finds or registers your own agent for the harness on that runtime, and mints a single-use enrollment token for that agent. A new agent is named after your last name, the harness, and local, such as anderson-claudecode-local. To register several harnesses at once, use oxagen workspace connect. Without --enroll, the command prints the steps to run on the machine: install the CLI, enroll with the token, and start the harness. With --enroll, it prints no steps and enrolls this machine at once with the token, the way oxagen agent enroll --token does. If enrolling fails, it exits 1. Run the same command again: it reuses the runtime and the agent and mints a new token. Name the workspace with --workspace-slug or OXAGEN_WORKSPACE.
| Flag | Description |
|---|---|
--harness <name> | Required. claude-code (or claude), codex, cursor, or stella. |
--workspace-slug <slug> | The workspace the machine reports to. OXAGEN_WORKSPACE also sets it. |
--machine-name <name> | The machine's host name. Defaults to this machine's. The runtime takes this name. |
--cloud-sandbox | Also set up the workspace's cloud sandbox runtime, as oxagen sandbox runtime setup does. A refusal there leaves the machine registered and prints as a warning. |
--enroll | Enroll this machine now with the token. |
--ttl-minutes <n> | Minutes the token stays valid, from 1 to 60. Defaults to 30. |
--json | Print the answer as JSON. The answer carries the token, and enrolled when you pass --enroll. |
Running the command again for the same machine and harness reuses the runtime and the agent, and mints a new token. A machine runs one agent per harness, so the command is refused when another operator's agent already runs that harness there. It needs an organization Owner. A coding agent runs this command with --enroll to set a machine up. See Setup from a coding agent.
oxagen agent on this machine
oxagen agent status [--json]
oxagen agent unenroll [--harness <name>] [--all] [--token <apiKey>] [--purge] [--reason <text>]
oxagen agent uninstall [--token <apiKey>] [--reason <text>]
oxagen agent reassign [--workspace <slug>] [--org <slug>] [--harness <list>] [--token <apiKey>] [--api-url <url>] [--reason <text>] [--default] [--allow-root]
oxagen agent export [--session <id>] [--format <format>] [--out <file>] [--list]
oxagen agent verify [--harness claude-code|codex|cursor|stella] [--json]
oxagen agent backfill [--harness claude-code|codex] [--since <date>] [--until <date>] [--project <name>]... [--exclude-project <name>]... [--session <id>]... [--dry-run] [--json]
oxagen agent detect [--json]
oxagen agent hosts [--status active|paused|suspended|revoked] [--limit <n>] [--json]Each of these acts on the machine you run it on, except hosts, which reads the control plane. See Wrap an agent for the full behavior.
| Subcommand | Description |
|---|---|
status | This machine's enrollments, collector, hooks, policy bundle, and spool. It exits 1 when no agent is enrolled, or when any agent's events are not reaching Oxagen. |
unenroll | Removes an agent's hooks and service, revokes its enrollment, and deletes its host key. On a machine with more than one enrollment, name the one to remove with --harness, or remove them all with --all. Pass one of the two. --purge also deletes the local event log, spool, and quarantine. While they hold events that have not reached Oxagen, --purge changes nothing unless you type purge when it asks, at your own terminal. From an agent's shell, it always refuses, with --purge or without. --token is the operator token for the server-side revoke. |
uninstall | Takes Oxagen off this machine. It unenrolls every agent with --purge, then removes ~/.config/oxagen, which holds your oxagen login session. On a machine where an earlier Oxagen desktop app ran, it also removes what that app recorded writing: the links, the shell profile lines, and the per-user copies. It stops after the unenroll if any enrollment is left. While events wait to reach Oxagen, it removes nothing unless you type purge when it asks, and from an agent's shell it always refuses, so run it from your own terminal. See How to uninstall the CLI. |
reassign | Points an agent at another workspace or org. It revokes the enrollment and enrolls again through your CLI login, keeping the device key. --harness with no --workspace replaces the harness list. --default also makes the new org and workspace the CLI default in config.json. |
export | Exports a session from the local event log. --format trace writes the contextgraph-trace journal, and --format otlp writes OTLP JSON. The default, --format recorder, writes the recorder's own NDJSON. --list lists the sessions in the log. --out writes a file in place of stdout. --verify checks the session in place of exporting it: every hash and link, and the tag the collector wrote beside each event with a key only it reads. Run it as the user the collector runs as. |
verify | Runs one headless turn of a harness, Claude Code by default, and confirms the collector chained it. --json prints the result as JSON. It exits 1 when the turn was not chained. |
backfill | Records the Claude Code or Codex sessions this machine ran before it enrolled. See oxagen agent backfill. |
detect | Lists the harnesses this machine has (Claude Code, Codex, Cursor, Stella, and Claude Desktop) and which of them are enrolled. |
hosts | Lists every machine enrolled in this workspace, with the tier each of its apps reaches. |
oxagen agent backfill: record sessions from before enrollment
oxagen agent backfill [--harness claude-code|codex] [--since <date>] [--until <date>] [--project <name>]... [--exclude-project <name>]... [--session <id>]... [--dry-run] [--json]Records the sessions this machine ran before it enrolled. For Claude Code it reads the transcripts under ~/.claude/projects. With --harness codex it reads the rollouts Codex keeps under ~/.codex/sessions and ~/.codex/archived_sessions, or under $CODEX_HOME when that is set. A Codex subagent's rollout is recorded with the thread that started it. Stella and Cursor keep no session history Oxagen can read back, so the command refuses them. The running daemon reads each file, rebuilds the session's record from it, and sends it to Oxagen the way it sends a live session. The command only asks the daemon and prints its report.
A backfilled run is rebuilt, not watched. Nothing enforced a policy while it ran, so its record names no policy decision, approval, or token. Its git facts are the branch and directory the transcript recorded, and its cost is an estimate from the price book on the day it ran. That cost never counts toward a budget or a bill. Run --dry-run first and read the report before the first real pass.
| Flag | Description |
|---|---|
--harness <name> | Whose sessions to read: claude-code, the default, or codex. The pass goes to the agent that hooks that harness. |
--since <date> | Only sessions that started on or after this UTC date, written YYYY-MM-DD. |
--until <date> | Only sessions that started before this UTC date. |
--project <name> | Only this folder under ~/.claude/projects. Repeat it for more folders. A folder's name is its working directory with each / and . written as -. For Codex, name the day Codex filed the rollout under, written YYYY-MM-DD, or archived. |
--exclude-project <name> | Skip this folder. It applies after --project. A machine enrolled into a work workspace should skip its personal folders. |
--session <id> | Only this session and its subagents. Repeat it for more sessions. For Codex, use the thread id. A subagent's thread id reads the thread that started it. |
--dry-run | Read every transcript, count what a pass would record, and ask Oxagen which sessions it already holds. Record and send nothing. |
--json | Print the report as one JSON object, with no progress lines. |
The report prints counts only: each folder with its session count and dates, the sessions by what happened to them, the records by kind, the tokens by model, and the read errors. It never prints a prompt, a reply, a title, a tool input, or a path from inside a transcript.
While the policy bundle on this machine does not verify, the daemon holds a pass's bodies on this machine instead of sending them, as it does for a live session. The report says how many still wait and how many found no room. A live session's held bodies keep their room, so a pass drops its own bodies first. A dropped body's event still goes to Oxagen without it.
A pass leaves a session alone when this machine already records it live, when Oxagen already holds it, when an earlier pass recorded it, or when its transcript changed in the last 15 minutes. It asks Oxagen first, so a machine that lost its local state does not record a session twice. The pass records no session Oxagen did not answer for. Run the command again later to record those sessions. A pass that stops partway resumes where it stopped the next time it runs.
| Exit code | Meaning |
|---|---|
0 | The pass finished. A skipped session is not a failure. |
1 | The pass stopped before the end. Run the command again to resume. |
2 | An option is invalid. |
3 | The daemon did not answer. oxagen agent status shows why. |
4 | This machine is not enrolled, or no agent on it hooks the harness. |
oxagen agent run: one agent session under Oxagen
oxagen agent run [--name <agent>] [--contained] [--image <ref>] [--workspace <dir>] [--github-repository <owner/name>] -- <command> [args...]Runs one agent session under Oxagen control. Everything after -- is the agent's command and its arguments. What the command names decides what happens:
- A custom agent. Any other command is recorded as a custom agent under
--name. Oxagen opens the session with aSessionStarthook call. The agent starts only when Oxagen accepts the session, and it runs withOXAGEN_AGENT,OXAGEN_SESSION_ID, andOXAGEN_HOOKin its environment, so it can report its own steps. The session closes withSessionEndwhen the agent exits. - A harness this machine wraps.
claude,codex,cursor-agent, orstellaruns as it is, and that harness's own hooks record the session. A harness no agent on this machine wraps is refused. --contained. Starts Claude Code or Codex in the contained launcher, on Linux with Docker.oxagen run -- claude …does the same.
| Flag | Description |
|---|---|
--name <agent> | The custom agent's name: lowercase letters, digits, ., _, and -. Defaults to the command's file name. With --name, any command is recorded as a custom agent. |
--contained | Start Claude Code or Codex in the contained launcher. |
--image <ref> | With --contained: the image. OXAGEN_CONTAINED_IMAGE also sets it. |
--workspace <dir> | With --contained: the repository root to mount at /workspace. Defaults to the current directory. This is a directory, not the workspace slug enroll takes. |
--github-repository <owner/name> | With --contained: the one repository the run may fetch and push. Oxagen's Git custody gets the credential for each request, so you mint no token. The workspace must have the repository bound. |
The command exits with the agent's own exit code. It exits 1 when the machine is not enrolled, when Oxagen refuses the session, or when the command cannot start. It exits 2 when no command follows --, when the custom agent's name is invalid, or when the harness is not wrapped on this machine. See Wrap a custom agent.
oxagen work: work orders on this machine
oxagen work list
oxagen work start <work-order>
oxagen work claim <criterion> --text "<how the commit meets it>" [--unmet] [--run "<command>"] [--check "<name>"]... [--file <path>[:<lines>]]... [--link <url>]... [--work-order <wo_id> --item <wi_id>]
oxagen work checklist [--json]
oxagen work progress --step <n> --of <count> --changed "<text>" --passed "<text>" --next "<text>" [--ask "<text>"] [--work-order <wo_id>]
oxagen work staffing <item> [--json]
oxagen work stale [--repo <owner/name>] [--mine] [--backlog] [--stored] [--json]A person sends work to an agent from Work in the app. The work order waits on the agent's host until someone at that machine starts it.
| Subcommand | Description |
|---|---|
list | Lists each work order waiting on this machine, with its work item, when it arrived, and its key. |
start <work-order> | Claims the work order, then starts the agent's harness in the current directory with the Done Checklist as its first prompt. Run it in a checkout of the repository the Done Checklist names. A work order id starts with wo_. |
staffing <item> | Recommends the model tier and effort for a work item, such as WI-12, from the runs similar work ran on in the last 30 days: the pair they ran on, the median recorded cost, and a lighter choice with how often runs on it met their checks. With no similar run on record, it shows the tier triage drafted from the tier guidance and says so. A cost is an estimate from recorded runs, not a saving. It needs a login. |
stale | Lists the work items stella suggests closing, then runs a fresh pass that finds work that is stale, repeated, already done by a merged pull request, or out of step with its tracker. --repo reads one repository, --mine your own work, --backlog the work nobody owns, both together your own work and the work nobody owns, and --stored skips the fresh pass. A workspace runs 10 fresh passes a day. It closes nothing, and it needs a login. |
claim <criterion> --text <text> | The agent runs this inside the work order's run. It says whether the head commit in the current directory meets one item of the Done Checklist, named by its key such as c1, and points at the evidence. Push the commit to the pull request first. |
checklist | The agent runs this inside the work order's run. It lists every item of the Done Checklist with its claim, and the items with no claim on the pull request's latest commit. |
progress | The agent runs this inside the work order's run, after each step of its plan. It posts a progress update: the step it finished, what changed, what passed, and what comes next. A person reads it on the run. |
Flag (claim) | Description |
|---|---|
--text <text> | Required. How the commit meets the item, or with --unmet why it does not, in 1 to 2000 characters. |
--unmet | Reports an item the agent could not meet. The text says why. |
--run <command> | Runs the command in the current directory before the claim goes out, and sends its exit code, how long it took, and the last 2000 characters of its output, with secrets taken out. A met claim whose command fails is not sent. After 5 minutes the command stops, with every process it started. |
--check <name> | A CI check that proves the item, by the name the pull request shows. Oxagen reads its result on the claimed commit. Repeat it for more checks. |
--file <path> | A file the pull request changes for the item, from the repository's root, with :12 or :12-30 to name lines. Oxagen records whether the pull request changes it. Repeat it for more files. |
--link <url> | A page that shows the item met. Repeat it for more links. A claim carries at most 8 pieces of evidence. |
--work-order <wo_id> | For a batch. A batch runs several work items in one run, and the run's own work order is the one start started. A claim for any other item of the batch names that item's work order here, as the first prompt lists it. |
--item <wi_id> | The work item of --work-order. Give the two flags together or not at all. |
Flag (progress) | Description |
|---|---|
--step <n> | Required. The step of the plan this update closes, a whole number from 1 to 1000. |
--of <count> | Required. How many steps the plan has, from 1 to 1000 and no fewer than --step. |
--changed <text> | Required. What this step changed, in 1 to 500 characters. |
--passed <text> | Required. The tests or checks that passed, in 1 to 500 characters. |
--next <text> | Required. What the agent does next, in 1 to 500 characters. |
--ask <text> | A question only a person can answer, in 1 to 500 characters. It waits for an answer with the run's other questions. Leave it out when the agent needs no answer. |
--work-order <wo_id> | For a batch. The update is filed on the batch's one run under the work order named here, as the first prompt lists it. |
start claims the work order before anything runs. When Oxagen refuses the claim, nothing starts, and the message says why: the send ended, it went to another machine, or a run already started for it. start never claims again on its own. When this machine does not wrap the agent's harness, or the harness command is not installed, start tells Oxagen, and Oxagen ends the send so the item can be sent again. The work order stays in list until the harness starts.
claim works only inside a run that start started, because it reads the work order from the OXAGEN_WORK_ORDER_ID variable start sets for the harness. Oxagen records the claim beside the item on the work item. A claim is the agent's word: a person still checks every item and decides. GitHub tells Oxagen about a push a few seconds after it lands, so when Oxagen has not seen the commit yet, claim asks again for about a minute. After that it stops, and the message says to push first. The same claim on the same commit again records nothing new. A different claim on the same commit, such as an item now met, takes the earlier one's place.
checklist works inside such a run too. In a batch that runs as one run, it lists each work order of the batch, with the --work-order and --item a claim on it takes. Before the agent ends its turn, the machine's Oxagen service reads the same list. While an item has no claim on the latest commit, it sends the agent back to the list, at most three times on the same commits.
progress works only inside such a run too, and sends the update with the key of the machine that claimed the work order. The harness's oxagen MCP server cannot post an update, because its key may only read, so this command is how an agent in any harness reports its progress. A run posts at most one update a minute. A second one inside the minute is refused, and the message says how long to wait.
Every run on one machine uses the same machine key. So start also gives the harness a token for its own run, in the OXAGEN_WORK_ORDER_PROOF variable, and claim, checklist and progress send it with each call. Oxagen refuses a claim or an update unless the token covers the work order it names: the run's own work order, or another work order of its batch. One run cannot write to another run's work order on the same machine. A run that start started before this token existed has none, so both commands refuse. Stop that run from the work item, then send the work item again.
A run in a cloud sandbox has no start and no machine key. Oxagen claims the work order for the sandbox when it starts, and the sandbox's launcher sets OXAGEN_WORK_ORDER_ID, OXAGEN_WORK_ITEM_ID, and OXAGEN_WORK_ORDER_PROOF for the harness, with OXAGEN_WORK_RELAY. claim, checklist, and progress then send each call to the sandbox's gateway, and the Oxagen service in the sandbox sends it on with its own key, which the harness never holds. Before the agent ends its turn, that service reads the checklist with its own key and sends the agent back to any item with no claim, as on a machine.
| Exit code | Meaning |
|---|---|
0 | list finished. For start, the harness ran and exited 0. For claim, Oxagen recorded the claim or already had it. For checklist, Oxagen answered. For progress, Oxagen recorded the update. |
1 | No agent is enrolled on this machine, the work order is not waiting here, Oxagen refused the claim, or the harness could not start. For claim, the command ran outside a work order's run, the run has no token, the directory has no commit, the --run command failed on a met claim, or Oxagen refused the claim or could not be reached. For checklist, the command ran outside a work order's run, or Oxagen did not answer. For progress, the command ran outside a work order's run, the run has no token, or Oxagen refused the update or could not be reached. |
2 | The id is not a work order id or an item key, the --text is empty or longer than 2000 characters, a --check, --file, --link or --run value is not one Oxagen takes, the claim names more than 8 pieces of evidence, or --work-order and --item are malformed or not given together. For progress, a step is not a whole number from 1 to 1000 or is past --of, or a text is empty or longer than 500 characters. |
After a successful claim, start exits with the harness's own exit code.
oxagen work claim c1 --text "The retry test covers the timeout path." --run "pnpm --filter @acme/upload exec vitest run retry"
oxagen work claim c2 --text "The upload page shows the retry count." --check "app / test" --file src/upload/retry.tsx:12-40
oxagen work claim c3 --unmet --text "The load test needs the staging cluster, which this run cannot reach."
oxagen work checklist
oxagen work progress --step 2 --of 4 --changed "Retry the upload on a timeout." --passed "pnpm test:upload" --next "Cover the retry limit."oxagen run: recorded runs
oxagen run [--image <ref>] [--workspace <dir>] [--github-repository <owner/name>] -- <claude|codex> [args...]
oxagen run --harness <claude|codex|stella> --workspace-slug <slug> (--repo <owner/name> [--branch <name>] | --work-order <wo_id>) [--runtime <slug>] [--prompt <text> | --prompt-file <path>]
oxagen run list [--limit <n>] [--cursor <cursor>] [--json]
oxagen run show <run-id> [--after <cursor>] [--session <uuid>] [--json]
oxagen run chain <run-id> [--after <seq>] [--verify [--chain <cursor>]] [--json]
oxagen run turns <run-id> [--json]
oxagen run transcript <run-id> [--zoom turns|steps|everything] [--kinds <kinds>] [--query <words>] [--after <cursor>] [--limit <n>] [--text excerpt|full] [--json]
oxagen run context <run-id> [--after <seq>] [--json]
oxagen run export <run-id> [--json]
oxagen run export-status <export-id> [--json]
oxagen run download <export-id> [--out <file>] [--json]
oxagen run pause-all --reason "<text>" [--json]
oxagen run answer <interjection-id> (--text "<answer>" | --link | --create <name> --slug <slug>) [--json]These commands read the workspace's recorded runs and act on them. A run id starts with tse_. An older arun_ id still works.
The first two forms start runs. oxagen run -- claude … starts Claude Code or Codex in the contained launcher, with the same --image, --workspace, and --github-repository flags as oxagen agent run with --contained. oxagen run --harness … starts a sandbox run, the same as oxagen sandbox run without --json. See oxagen sandbox. A run takes one form or the other: a sandbox flag with a command after -- is refused, and so is --workspace on a sandbox run.
| Subcommand | Description |
|---|---|
list | The workspace's runs, newest first, one page at a time. --limit takes 1 to 100. --cursor takes the cursor the previous page printed. |
show <run-id> | One run's header, the steering versions it received, the pause in force, a page of its frames, and its subagent chains. --after reads the next page. --session shows one subagent chain, by the session id the run lists. |
chain <run-id> | What makes the run's record tamper-evident: the hash rule, the root, each point where the agent's computer locked the record, the gaps, and the replay ladder. Locked means any change after that point shows. --verify reads the stored frames back and checks each hash and link against the run's record, on the run's own chain and on each subagent chain. --chain goes on checking subagent chains from where an earlier --verify stopped. |
turns <run-id> | The run's cost turn by turn: each turn's model and tool steps, frames, cache hit, cost, and the cost so far. |
transcript <run-id> | One page of the run's transcript, with the count of each kind of entry over the whole run. --zoom takes turns, steps (the default), or everything. --kinds keeps only the listed kinds, comma-separated, such as thinking,seal. --query keeps the entries that hold the words, ignoring case. --limit takes 1 to 500. --text carries an excerpt or the full text of each body. |
context <run-id> | What each of the run's model requests carried: its prompt tokens and each block's share of them. |
export <run-id> | For a locked run, queues an evidence export that Oxagen locks, and prints its export id (rexp_…). Oxagen builds the export in the background, and anyone can check it offline. A session id (tse_…) exports the whole session. A run_ id exports one run, the work that followed one submitted prompt, as one file, and closes that run first when its answer has ended. Oxagen refuses a run whose last turn or a child chain is still working, and says which. Needs an organization Owner. |
export-status <export-id> | Where the export stands, and its download link once it is ready. |
download <export-id> | Downloads a ready export and checks its sha256 hash against the hash Oxagen recorded. --out names the zip file. In the current directory it defaults to <run-id>.arp.zip for one run's file, and to <session-id>-<export-id>.zip for a session's export. Check the export with oxagen verify. |
pause-all | Pauses every live wrapped run in the workspace as one recorded decision. --reason is required and recorded. Each run stops at its next stopping point after its host collects the command. The output lists any run it skipped, such as one whose host is offline. Needs an organization Owner or the workspace's Admin. |
answer <interjection-id> | Answers the question a run paused to ask, by its id (inj_…). --text answers an agent's own question. When a session started in a repository the workspace has not bound, --link opens the steering PR that links the repository to this workspace, and --create <name> --slug <slug> creates a new workspace for it with skills off. Give exactly one answer. The CLI does not list questions. The Run page shows them. |
--text on answer needs an organization Owner, or a workspace Admin or Member. --link and --create need an organization Owner or the workspace's Admin. --json prints the result as JSON. Each subcommand exits 1 on an API failure.
oxagen run chain --verify prints its answer last, and the first line of that answer says how far the check went. It says Verified only when every check passed on every chain, up to the head of a locked run, in one call from the start of the run. A check that passed over part of the record says Checked so far, then what it did not cover: a head it stopped before, a run or subagent chain that is not locked yet, subagent chains it did not reach, or a call that started at --after or --chain. A failed check says Not verified and lists each failure. The exit code says the same to a script, with --json too:
| Exit code | Meaning |
|---|---|
0 | Every check passed over the whole record of a locked run. |
1 | A check failed, or the API call failed. |
3 | No check failed, and the check did not cover the whole record. On a long run, check the next page with --after, and the next subagent chains with --chain. |
One call checks at most 10,000 frames of the run's own chain, and 10,000 frames across its subagent chains. When the subagent chains hold more, the answer ends with the command that goes on from where the check stopped, such as oxagen run chain tse_01k5ru4a8x --verify --chain 0192d4a8-7c1e-7a00-8000-00000000c1d0:10000. Each such call checks up to the next 10,000 subagent frames and reads none of the run's own. A call with --after or --chain checks part of the run, so it exits 3 even when every check it made passed. Run the first call and each next one until no command is printed and none exits 1.
No oxagen run command locks a run or answers its links to work items. A person does both in the app while signed in, from the Run page. Oxagen refuses the CLI's key for seal_run and review_run_link, because an agent on your machine can read that key from ~/.config/oxagen/config.json.
oxagen run list --limit 20
oxagen run turns tse_01k5ru4a8x
oxagen run export tse_01k5ru4a8x
oxagen run download rexp_01k5ru9c2m --out evidence.zip
oxagen run export run_01k5ru4b7qoxagen steer: steer running agents
oxagen steer "<text>" (--run <run-id> | --agent <agent> | --all) [--mode next_step|interrupt|turn_boundary] [--reason "<text>"] [--expires-in <minutes>] [--json]
oxagen steer list <run-id> [--limit <n>] [--json]An agent that is already working reads the steer at its next stopping point: "Leave the migrations alone and run the tests first." The text goes in front of the agent as written. Oxagen records it with the run and never runs it. Name exactly one target:
| Target | Who gets the steer |
|---|---|
--run <run-id> | One run, by its id (tse_…). A run that has ended, or whose host stopped checking in, refuses it. |
--agent <agent> | Every run of the agent that is going now. Name the agent by its key (org.workspace.slug) or its slug. When the agent has no run going, Oxagen holds the steer and its next run gets it when it starts. |
--all | Every run going now in the current workspace. Nothing is held, so a run that starts later gets no steer. |
--mode sets how soon the steer lands. turn_boundary waits for the agent's next prompt. next_step, the default, lands after the tool call in progress. interrupt cuts the model call in flight, on runs whose model traffic passes through Oxagen. The mode is a ceiling: a host that cannot carry it delivers the steer at the next point it can, and steer list shows the mode each run got. --reason is recorded with the steer. --expires-in takes 1 to 1,440 minutes, and the steer waits an hour when you leave it out.
The output says how many runs got the steer, and names each run that could not take it with the reason, such as a host that is offline. It exits 1 when no run could take it. --all in a workspace with no run going queues nothing and exits 0.
steer list shows each steer and command sent to one run, newest first: when it was sent, its status, the mode the run got, and the start of its text. --limit takes 1 to 100.
Steering needs an organization Owner, or a workspace Admin or Member. The agent page in the app has the same action, Steer agent.
oxagen steer "Stop editing the migration and run the tests first" --agent billing-bot
oxagen steer "Pause before you push" --all --mode turn_boundary
oxagen steer list tse_01k5ru4a8xoxagen verify: run export and claim exports
oxagen verify <export> [--json] [--key-id <id>] [--issuer-key <id>] [--ts-key <id>] [--tsa-root <sha256>] [--expect-read <bundle_id>] [--declarant-root <sha256>]
oxagen verify <dir> --sample
oxagen verify <path> --write-verifierChecks an export offline. <export> is a zip or the folder it was unpacked into. The manifest's format decides the check. It makes no network call and reads no CLI login, so an auditor can run it on a clean machine.
A run export (oxagen.run-export/<n>) covers one session. Each record coverage line prints its locked enforcement tier, completeness gaps, and replay grade. A changed or missing coverage value in the manifest fails its check. The check covers each frame's hash and its link to the frame before, the Merkle root, each locked root and the Ed25519 lock on it, and the redaction summary against the frames. An export that lists the session's runs gets a Runs section: each run's stretch must sit where the manifest places it on the session's chain, the frames between the runs must be the ones listed, and each run's folder must pass the run file check.
A run file (arp.run/1, named <run-id>.arp.zip) covers one run. Each check prints with held or broken: every frame's hash, the links from the run's opening hash to its closing hash, each child chain's links, the Merkle root, Oxagen's lock, the lock the agent's computer made over the run's last frame, each body file against the hash its frame names, and the turn list and redaction summary against the frames. The machine lock prints not covered for a run no such lock reaches. One changed byte in a frame, a body, the manifest, or a lock breaks a check, and the output names it.
A claim export covers one agent across a time window, in the public format draft-oxagen-scitt-agent-evidence-00. The check adds a line for each RFC 3161 timestamp on a chain head, each inclusion proof, each gap in a chain, the access log of reads under the scope token, and the coverage statement of recording paths.
The output lists each frame, then each check, and ends with HELD, BROKEN, or, for a claim export checked without all of --issuer-key, --ts-key, and --tsa-root, UNPINNED. A run file checked without --key-id prints an UNPINNED line before its verdict and still exits 0. --json prints the whole verification as one JSON line. The command exits 1 when any check fails and 3 when a claim export is unpinned. An export in a format this CLI does not know prints unknown export format.
| Flag | Description |
|---|---|
--key-id <id> | For a run export or a run file: require Oxagen's lock to be made by this key id. Ask your Oxagen administrator for the id of the deployment's lock key. Without it, the check holds the export only to the key the export itself names. |
--issuer-key <id> | Trust this record keeper key id. Repeat it for each key. Without it, the check uses the keys the export carries, and the verdict is UNPINNED. |
--ts-key <id> | Trust this Transparency Service key id. Repeatable. |
--tsa-root <sha256> | Trust this timestamp authority root certificate, by its SHA-256 fingerprint. Repeatable. |
--expect-read <bundle_id> | Require the read that produced this earlier export in the access log. Repeatable. |
--declarant-root <sha256> | Require the declarant's certificate to chain to this root, by its SHA-256 fingerprint. Repeatable. |
--sample | Write a sample claim export to <export> and <export>.zip, and this CLI's verifier to <export>-verify.mjs, instead of checking it, and print the ids to pin. |
--write-verifier | Write this CLI's claim export verifier to <export> as one verify.mjs that needs only Node.js, instead of checking anything. Run that copy, never one that came inside an export. |
--json | Print the verification as JSON. |
oxagen verify evidence.zip
oxagen verify run_01k5ru4b7q.arp.zip --key-id 3f9a1c0b7d2e4a68
oxagen verify ./claim --sampleExport and verify a run explains each check and its limits. For a wrapped run, Oxagen makes its lock when it builds the export. The run export carries no independent timestamp from an outside authority.
oxagen approvals: resolved approvals
oxagen approvals resolved [--run <run-id>] [--since <instant>] [--until <instant>] [--limit <n>] [--cursor <cursor>] [--json]Lists the workspace's resolved approvals, most recently resolved first. The list holds the calls a person approved or denied and the calls a decision rule approved with no person. The approver column shows policy:<rule id> for a rule and user:<usr_…> for a person. The command calls list_resolved_approvals.
| Flag | Description |
|---|---|
--run <run-id> | Only the approvals recorded on this run. |
--since <instant> | Only rows resolved at or after this ISO 8601 time. |
--until <instant> | Only rows resolved at or before this ISO 8601 time. |
--limit <n> | Page size, 1 to 100. |
--cursor <cursor> | The nextCursor of the previous page. |
--json | Print the raw result as JSON. |
oxagen approvals resolved --since 2026-10-01T00:00:00Z --limit 50Machine commands
These commands are hidden from oxagen --help. Enrollment writes them into the machine's hooks, service, and app settings, and those programs run them. You run one yourself only to report a custom agent's steps with oxagen hook --agent <name>.
| Command | What runs it |
|---|---|
oxagen hook | Each wrapped harness's hooks, on every hooked event. A custom agent runs it with --agent <name>. It reads the payload on stdin, prints the answer on stdout, and exits 0. |
oxagen daemon | The user service. It runs the collector in the foreground. |
oxagen mcp-stdio | A connected app, to reach this machine's Oxagen toolbelt over stdio. |
oxagen credential issue, oxagen credential status, oxagen credential sync | Claude Code runs issue as its apiKeyHelper for a fifteen-minute model token. status shows the model credentials the gateway holds, in the order it tries them. sync reads the credentials you saved in Oxagen into the gateway's custody now, which the daemon also does every 15 minutes. |
oxagen github configure, oxagen github credential | git, to route repository requests through this machine's credential custody. |
oxagen arp | Saves a stopped run's selected files and brief as an Agent Run Protocol save point, and restores a save point to start a fresh run. |
oxagen env: workspace environments
oxagen env list [--json]
oxagen env get <id-or-slug> [--json]
oxagen env create <name> [--slug <slug>] [--description <text>]
oxagen env update <id-or-slug> [--name <name>] [--slug <slug>] [--description <text>] [--active | --inactive]
oxagen env rm <id-or-slug> [--yes]
oxagen env set-default <id-or-slug>An environment is a named set of secret values in a workspace. A sandbox run takes its secrets from the environment its sandbox runtime names, or from the workspace's default environment when the runtime names none. The app has no environment page yet, so you manage environments here or through the API.
create derives the slug from the name unless you pass --slug. update --inactive turns an environment off, and the default cannot be turned off. rm asks before it deletes unless you pass --yes, and it refuses the default. set-default makes an environment the workspace default.
oxagen env create Staging --slug staging --description "Pre-release checks"
oxagen env set-default stagingoxagen secret: credential vault
oxagen secret list [--json]
oxagen secret set <key> [value] [--env <slug>] [--no-sensitive]
oxagen secret rm <key> [--env <slug>] [--yes]
oxagen secret reveal <key> [--env <slug>]
oxagen secret import [--env <slug>] [-f, --file <path>] [--yes]
oxagen secret export [--env <slug>] [-o, --out <path>]The workspace's encrypted credential vault. list shows masked metadata only. Each key has a default value and can have an override for each environment. --env targets one environment's override. Leave it out for the default value.
set stores the value encrypted. --no-sensitive stores it as plain configuration instead. Leave the value out, or pass -, and set reads it from standard input, which keeps it out of your shell history. rm asks before it deletes unless you pass --yes. With --env, it removes only that environment's override.
reveal and export return plaintext, and Oxagen records each one in the access log. export writes .env text to standard output, or to -o, --out. import reads .env text from -f, --file or from standard input, and previews the change unless you pass --yes.
printf %s "$STRIPE_KEY" | oxagen secret set STRIPE_KEY --env staging
oxagen secret import --env staging -f .env.staging --yesoxagen runtime: runtimes
oxagen runtime list [--workspace-slug <slug>] [--json]
oxagen runtime create --name <name> [--slug <slug>] [--containment-required] [--workspace-slug <slug>] [--json]
oxagen runtime update <runtime> [--name <name>] [--slug <slug>] [--containment-required | --no-containment-required] [--workspace-slug <slug>] [--json]
oxagen runtime rm <runtime> [--yes] [--workspace-slug <slug>] [--json]A runtime is a place agents run, such as a laptop, a VM, or a cloud workspace. <runtime> is its id (rtm_…). Enrolling a machine creates the runtime named after it, so most machines never need create.
list reads list_runtimes: every runtime in the workspace, with the agents and the enrolled machines on each. create names a runtime through create_runtime. The slug comes from --name unless you pass --slug. --containment-required makes every agent on the runtime run under the contained launcher. update renames a runtime or changes its containment through update_runtime, and refuses a call that names no change. A new slug takes only while no live agent or enrolled machine uses the runtime. rm deletes a runtime for good through delete_runtime, once no live agent, enrolled machine, or running sandbox uses it. It asks first unless you pass --yes.
create, update, and rm need an organization Owner.
oxagen equipment delete: delete records
oxagen equipment delete <type>:<id>... [--reason <text>] [--merge <now|review>] [--yes] [--workspace-slug <slug>] [--json]
oxagen guardrails delete <type>:<id>... [--reason <text>] [--yes] [--workspace-slug <slug>] [--json]Name each record as its type, a colon, and the id its list shows, such as toolbelt:tbt_… or spend_budget:bdg_…. One call takes up to 100 records. rm is another name for delete.
equipment delete calls delete_equipment and takes agent, runtime, mcp, toolbelt, skill and steering records. guardrails delete calls delete_guardrails and takes approval_rule, kill_switch, mandate and spend_budget records. A record that a run or the audit trail names is kept and hidden, so every past run still names it. Skills, steering records and MCP servers the steering repo holds leave through one steering pull request: Oxagen merges it at once in solo mode, and it waits for a reviewer in team mode. --merge review leaves it open for a reviewer in solo mode too. --merge now merges it at once in solo mode. In team mode the pull request still waits for a reviewer from the CLI, because only an organization Owner or a workspace Admin signed in to the app merges a deletion without review. While the pull request is open, each steering record it deletes still steers runs and shows as Pending delete.
The command prints one line per record with its outcome, then the pull request's link when one opened. Each record's own type checks your role, so a record you may not delete is refused with the reason and the rest are still deleted. A refused record sets the exit code to 1. Both commands ask first unless you pass --yes.
guardrails delete deletes mandates and auto-approval rules. It refuses a kill_switch and a spend_budget record with person_required, because clearing an off switch or deleting a spend ceiling lifts a control over agents, and only a person signed in to Oxagen does that. Delete those two on the Guardrails page.
oxagen equipment delete toolbelt:tbt_01 skill:release-notes --reason "Replaced by the shared belt" --yesoxagen equipment search: find records by meaning
oxagen equipment search -q <text> [--types <type,...>] [--limit <n>] [--workspace-slug <slug>] [--json] [--quiet]A steering record that caps daily spend at $50 says "spend cap", so a word search for "budget" misses it. equipment search calls search_equipment, which matches what each record means, and prints one line per hit, best first: its score from 0 to 1, its type, and the id Equipment lists it under. --types keeps only the types you name, from agent, runtime, mcp, toolbelt, skill and steering. You see only the types your role may list.
The search embeds your query only when the workspace's codegraph/embeddings.toml turns embeddings on with the Oxagen provider. Otherwise, or when the code graph's monthly spend cap is reached, a line on stderr says why and nothing is printed. --quiet drops that line.
oxagen equipment search -q budget --types steering,agentoxagen sandbox: runs in their own sandboxes
oxagen sandbox run --harness <claude|codex|stella> --workspace-slug <slug> --repo <owner/name> [--branch <name>] [--runtime <slug>] [--prompt <text> | --prompt-file <path>] [--json]
oxagen sandbox run --harness <name> --workspace-slug <slug> --work-order <id>
oxagen sandbox list [--state <state>] [--limit <n>] [--workspace-slug <slug>] [--json]
oxagen sandbox show <run> [--workspace-slug <slug>] [--json]
oxagen sandbox attach <run> [--workspace-slug <slug>] [--watch]
oxagen sandbox stop <run> [--workspace-slug <slug>] [--json]
oxagen sandbox pause <run> [--workspace-slug <slug>] [--json]
oxagen sandbox resume <run> [--workspace-slug <slug>] [--json]
oxagen run --harness <name> --workspace-slug <slug> --repo <owner/name>run starts a run on your own agent in its own sandbox on a sandbox runtime. oxagen run --harness … does the same, without --json. Name the workspace with --workspace-slug or OXAGEN_WORKSPACE. The CLI never reads it from the repository. --workspace stays the contained launcher's directory flag.
With a prompt or a work order, run prints the sandbox id and the command that opens its terminal. With neither, the run opens a terminal, and run attaches to it at once when your terminal is interactive. A workspace with no sandbox runtime refuses the launch and says to ask an org Owner to add one. An org Owner adds one on the Environments page under Equipment. An org Owner can also add one with oxagen sandbox runtime setup. --branch defaults to the repository's default branch. --runtime picks a sandbox runtime when the workspace has more than one. With --json, run prints the run as JSON and does not attach.
attach opens the terminal of one of your runs, named by its sandbox id (sbx_…) or its run id (tse_…). On a run that started from a prompt or a work order, it pauses the run first, and your keystrokes reach the run only once the run reports the pause. A run launched with no prompt takes keystrokes at once. The terminal size follows yours. Ctrl-] detaches, and a run attach paused stays paused until someone resumes it from its page in the app. Only one session at a time takes keystrokes for a run, so a second is refused. --watch reads the screen and sends no keystrokes. A dropped connection is dialed again and replays the output it missed. Only the operator who launched a run can attach to it. The operator, the organization's Owner, or an Admin of the run's workspace can stop it.
pause asks Oxagen to pause a running run on Oxagen cloud: it saves the sandbox's disk, stops the sandbox and frees its slot within about 15 seconds, and the wallet pays nothing while the run waits. resume asks a paused run to start again in a new sandbox from its saved disk, with the same files and harness session, once a slot is free. Each takes the run's sandbox id (sbx_…) or run id (tse_…), and the people who can stop a run can pause and resume it. See Paused runs.
list reads list_sandbox_runs: your own sandbox runs in the workspace, live ones first and then the newest. --limit reads from 1 to 100 runs, and 50 by default. --state keeps the runs read that are in one state: queued, creating, running, paused, stopped, or failed. show reads one run through get_sandbox_run: its state, its runtime, its host, and the credits charged so far for the minutes it ran. When the control plane refused the sandbox's launch, show prints the refusal's message and code on a refused line. <run> is a sandbox id (sbx_…) or a run id (tse_…).
oxagen sandbox runtime: sandbox runtimes
oxagen sandbox runtime list [--workspace-slug <slug>] [--json]
oxagen sandbox runtime setup [--size small|medium|large|xlarge] [--name <name>] [--slug <slug>] [--starter <id> | --image <ref> | --pinned-image <ref> | --dockerfile <ref>] [--service <name>]... [--workspace-slug <slug>] [--json]
oxagen sandbox runtime create --name <name> [--size small|medium|large|xlarge] [--slug <slug>] (--image <ref> | --pinned-image <ref> | --dockerfile <ref>) [--service <name>]... [--max-run-seconds <n>] [--environment <env_id>] [--workspace-slug <slug>] [--json]
oxagen sandbox runtime update <runtime> [--name <name>] [--image <ref> | --pinned-image <ref> | --dockerfile <ref>] [--service <name>]... [--size small|medium|large|xlarge] [--max-run-seconds <n> | --no-max-run-seconds] [--environment <env_id> | --no-environment] [--workspace-slug <slug>] [--json]
oxagen sandbox runtime rm <runtime> [--yes] [--workspace-slug <slug>] [--json]A sandbox runtime gives each run on it a sandbox of its own on Oxagen cloud. It needs no account of your own, and the credit wallet pays for each minute a sandbox runs, as Oxagen cloud sandboxes explains. <runtime> is the sandbox runtime's id (rtm_…).
setup is the short way, through setup_sandbox_runtime. A workspace that already has a sandbox runtime gets that one back, and nothing is written. Otherwise the command writes a template from the workspace's linked repositories into its steering repo, which opens a steering PR. When the repositories give it nothing to build from, it writes a starter template. When the workspace has no steering repo, it uses the public ubuntu:24.04 image. Then it creates the sandbox runtime and queues the template's build. --starter names the starter: node, python, rust, go, or polyglot. A template flag uses that template as it is. --size picks the Oxagen cloud size, and defaults to the smallest that fits the template.
create sets up a sandbox runtime with every setting named, through create_sandbox_runtime. --size is small (2 vCPU and 4 GiB), medium (4 vCPU and 8 GiB), large (8 vCPU and 16 GiB), or xlarge (16 vCPU, 64 GiB, and a 100 GiB disk), and defaults to small. The smaller three start on a 20 GiB disk that grows to 100 GiB as it fills. update changes one through update_sandbox_runtime, and a new template queues a new build. On update, --size moves each new sandbox to another size, with that size's disk. rm deletes a sandbox runtime through delete_runtime, once no run on it is live and no build is running. It asks first unless you pass --yes.
| Template flag | Description |
|---|---|
--image <ref> | Start each sandbox from a public registry image, such as ubuntu:24.04. |
--pinned-image <ref> | Start each sandbox from an image pinned by its sha256 hash, such as ghcr.io/acme/api@sha256:…. A hash is a short code made from the content, and any change gives a different code. |
--dockerfile <ref> | Build each sandbox from a Dockerfile in a repository bound to the workspace, written owner/repo:path@ref. |
--service <name> | A service the template starts before the harness, such as postgres. Repeat it for each one. |
create, update, rm, and setup need an organization Owner.
oxagen sandbox runtime setup --workspace-slug acme --starter node
oxagen sandbox runtime list --workspace-slug acmeoxagen credentials: your model credentials
oxagen credentials create --harness claude-code|codex [--key -] [--shared] [--label <name>] [--workspace-slug <slug>] [--json]
oxagen credentials create --provider anthropic|openai|openrouter|openai_compatible [--key <value>|-] [--shared] [--base-url <url>] [--label <name>] [--workspace-slug <slug>] [--json]
oxagen credentials list [--shared] [--workspace-slug <slug>] [--json]
oxagen credentials update <credential> [--shared] [--label <name>] [--pause | --resume] [--workspace-slug <slug>] [--json]
oxagen credentials rotate <credential> [--shared] [--yes] [--workspace-slug <slug>] [--json]
oxagen credentials check <credential> [--shared] [--workspace-slug <slug>] [--json]
oxagen credentials remove <credential> [--shared] [--workspace-slug <slug>] [--json]oxagen keys is the same command, so oxagen keys rotate vlt_… works too. add is the old name of create, and oxagen credentials add still works.
Your own API keys and Claude or ChatGPT logins. A credential belongs to you, not to a workspace, so one you save once serves every workspace and organization you work in. The gateway attaches your credentials to your runs only, in the order list shows, and moves to the next one when a provider says one is out of usage or names a problem with it: its token expired or was revoked, or its account is blocked for billing or suspended. Your runs skip a credential with a problem until you repair it. Fix the account, then check it with check, resume it with update --resume, rotate its key, or remove it and add it again. A credential never enters a sandbox. You can save several for one harness or provider. create refuses a secret you already saved.
--shared acts on the workspace's accounts in place of your own. A workspace account belongs to the workspace, so a run can bill the team's Claude or OpenAI account in place of the account of the person who started it. A workspace Admin or an organization Owner can create, update, rotate, check, and remove one, and every member can list them. --shared works with --workspace-slug, and without it the call goes through the workspace oxagen workspace use chose.
After it saves, create prints what it saved, the last four characters, and the credential's ID. list shows the same last four characters and never the secret.
The API still addresses a credential through a workspace, so each of these commands needs one. Run oxagen workspace use <org/workspace> to pick it, pass --workspace-slug, or set OXAGEN_WORKSPACE. The workspace only routes the call. The credential stays yours in every workspace.
Claude Code login
oxagen credentials create --harness claude-codeThis runs claude setup-token on your terminal. Finish the sign-in in your browser. The command reads the token Claude Code prints, hides it on the screen, and saves it as your Claude login. If it can't read the token off the screen, it asks you to paste it at a hidden prompt. Nothing is saved when the sign-in fails.
Codex login
oxagen credentials create --harness codexThis saves the login in auth.json under $CODEX_HOME, or under ~/.codex when that variable is unset. When the file is there, the command says it is using it and asks nothing. When the file is absent, the command runs codex login first. Oxagen stores a ChatGPT login, and Codex runs don't use one yet.
API key
oxagen credentials create --provider openrouter --key sk-or-…--provider takes anthropic, openai, openrouter, or openai_compatible. Oxagen stores an OpenRouter key, and sandbox runs don't use one yet, because the gateway sends model calls only to Anthropic and OpenAI. To keep a key for your own OpenAI-compatible server, use --provider openai_compatible and give its address with --base-url, such as oxagen credentials create --provider openai_compatible --base-url https://llm.example.com/v1. The address must use https and can't be a private address. Oxagen keeps the key until sandbox runs can use your own endpoint.
--key - reads the key from standard input. With no --key, the command shows a hidden prompt. A key typed after --key lands in your shell history and in the process list, so the command says so once on standard error after it saves the key. The CLI never prints a secret.
Without a terminal
With no --key and no terminal, the secret is whatever you pipe in on standard input. This works for a script, for a login, and for a key:
oxagen credentials create --harness claude-code --key - < token.txt
oxagen credentials create --harness codex --key - < ~/.codex/auth.jsonA ChatGPT login is a file, so --key takes it only as -.
Rotate a key
rotate replaces the key of one of your API keys and keeps its name, its status, and its place in the order. It names the key and asks before it reads the new one. Answer y, then paste the new key at the hidden prompt. Your runs use the new key from their next model call. Oxagen keeps no copy of the old key, so revoke it at your provider. To pipe the new key in, pass --yes, because the pipe can't answer the question: oxagen keys rotate vlt_… --yes < new-key.txt. A subscription login has no key to rotate: create the new login, then remove the old one.
Check a refused account
A sandbox run on your Claude or OpenAI account stops when the provider refuses the account: the key was revoked, the login expired, or the bill went unpaid. The run waits for repair, and the Console shows the account. Fix it at the provider, then ask the provider whether it works again:
oxagen credentials check vlt_…The check sends the provider one request that spends no tokens. When the provider accepts the credential, the problem clears and the runs that waited on it continue: the ones in this workspace at once, and the ones in your other workspaces within a minute. The command says how many continue. When the provider still refuses it, the command names the problem and the next step, such as paying the bill or rotating the key. When the provider gives no clear answer, nothing changes. The command exits 1 unless the check passed, so a script can wait on it. With --shared it checks one of the workspace's accounts, which needs a workspace Admin or an organization Owner.
--type still works: --type api-key is the default with --provider, and --type subscription is the default with --harness. --pause makes the gateway skip a credential until you --resume it. --resume also clears a problem the provider named, and the gateway tries the credential on its next call. If the provider still names the problem, the gateway records it again.
These commands work only with the session oxagen login gives you. A platform API key passed with OXAGEN_API_TOKEN is refused. Each add, pause, resume, rotation, or removal made from the command line sends you an email and a notice in the app, and so does a check that clears a problem. Both name the credential, the session key, and the address the change came from. If you didn't make the change, revoke that sign-in yourself: open Account settings, choose Security, and find it under Command-line sign-ins. oxagen logout on the machine that holds it ends it too.
oxagen api-key: API key rotation
oxagen api-key rotate <key-id> [--name <name>] [--json]
oxagen api-key acknowledge <key-id> [--json]rotate issues a replacement for a workspace API key, named by its public id (aky_…). The old key keeps working for 24 hours, so a lost response does not cut a caller off. The new secret is the only thing the command prints on standard output, so a script can capture it. --name gives the replacement a new label.
acknowledge takes the replacement key's id and confirms the new secret arrived. That revokes the old key at once.
Both need an organization Owner. The command exits 1 on a failure.
NEW_KEY=$(oxagen api-key rotate aky_01k5ru4a8x --name "CI deploy key")
oxagen api-key acknowledge aky_01k5rv7d3qoxagen router: verified-outcome market router
oxagen router preview <prompt> [--files <n>] [--cross-package] [--task-class <class>] [--json]
oxagen router policy get [--json]
oxagen router policy set [--scope org|workspace] [--mode off|shadow|enforce] [--threshold <n>] [--min-samples <n>] [--window <days>] [--escalate <true|false>] [--json]Learned, cost-aware model routing. For each task class, the router reads the outcomes Oxagen has verified and sends the work to the cheapest model whose verified-success rate clears a threshold. preview dry-runs the routing decision for a prompt and changes nothing. policy get shows the policy in force and where each value came from.
| Flag | Description |
|---|---|
--files <n> | preview: how many files the task should touch. |
--cross-package | preview: the task crosses package boundaries. |
--task-class <class> | preview: overrides the task class the router derives. |
--scope <scope> | policy set: org or workspace, the default. |
--mode <mode> | policy set: off, shadow, or enforce. |
--threshold <n> | policy set: the verified-success rate a model must clear, from 0 to 1, such as 0.95. |
--min-samples <n> | policy set: the samples a model needs before the router trusts it. |
--window <days> | policy set: the days of recent outcomes the router reads. |
--escalate <bool> | policy set: true or false, whether to move up a tier when the judge rejects a round. |
--json | Print the result as JSON. |
policy set changes spend behavior. With --scope org, it needs an organization Owner. With --scope workspace, it also accepts the workspace's Admin.
oxagen router preview "Rename the billing module" --files 12 --cross-package
oxagen router policy set --mode shadow --threshold 0.95policy get also lists the kind rules in force. A kind rule sends every work item of one kind, such as Bug, to one of your organization's model tiers. Each workspace keeps its own list of work item kinds, so a rule names its kind by slug, such as bug or new-feature. Each row shows the kind's name in the workspace, its slug, the tier's name, the effort the work runs at, and the scope that set the rule. The effort reads none when the rule names only a tier. A workspace's rule for a kind's slug wins over the organization's rule for that slug. At the organization's scope the table has no KIND column, because each workspace names its kinds. When no rule is in force, the command prints No kind rules. in place of the table.
Effective market-router policy:
mode shadow
success threshold 95.0%
min samples 20
window 30d
escalate on reject yes
source workspace
Kind rules:
KIND SLUG TIER EFFORT SOURCE
Bug bug Fast high workspace
New feature new-feature Balanced none orgpolicy set prints the kind rules the scope holds after the write, by slug, without the KIND and SOURCE columns. It has no flag that sets a kind rule. To set one, call set_routing_policy with kindRules through the API or MCP, naming each kind by its slug. With --json, both commands print each rule's tier with its id, slug, and name.
oxagen conversation: export a conversation
oxagen conversation export <id> [--format md|markdown|pdf] [-o, --output <file>] [--json]Exports a conversation's active branch. --format defaults to md, which is the same as markdown. Markdown goes to standard output or to -o, --output. A PDF is stored privately, and the command prints the serve URL.
oxagen asset: ingest a binary asset
oxagen asset upload <url> [--kind avatar|image|document|video] [--filename <name>] [--conversation <id>] [--json]Ingests an asset from a public URL into object storage. --kind defaults to image. --filename sets the name shown for it. With --conversation, it records the asset as a private chat attachment linked to that conversation.
oxagen logs: CLI debug log
oxagen logs [-n, --lines <n>] [--category invoke|api|error] [-f, --follow] [--path] [--clear] [--json]Reads the CLI's debug log at ~/.oxagen/logs/cli.output. The CLI writes that log only while OXAGEN_CLI_DEBUG is set to 1 or true. Then it records each command, each API request and response, and fatal errors. The entries carry request and response bodies, so only your user can read the file.
-n, --lines shows the most recent entries and defaults to 50. --category keeps one category: invoke, api, or error. -f, --follow follows the log as it grows. --path prints the log's location, and --clear empties it. --json prints the raw JSON lines.
OXAGEN_CLI_DEBUG=1 oxagen run list
oxagen logs --category api -n 20oxagen telemetry: anonymous usage telemetry
oxagen telemetry [on|off|status]Anonymous usage telemetry: command names, durations, coarse success and error categories, and OS and architecture. It never includes code, prompts, file contents, paths, model slugs, or keys. It is on by default. oxagen telemetry off or DO_NOT_TRACK=1 turns it off.
Login and logout
oxagen login [--token <token>] [--org <slug>] [--workspace <slug>] [--browser | --no-browser] [--signup]
oxagen logout| Flag | Description |
|---|---|
--token <token> | A platform API token. It skips the browser, for CI and other machines without one. |
--org <slug> | The organization. With a saved session and no --token, it switches the default without opening a browser. |
--workspace <slug> | The workspace. With a saved session and no --token, it switches the default without opening a browser. |
--browser | Opens the browser even without a terminal, and even when a session is saved. |
--no-browser | Asks you to paste a token instead of opening a browser. |
--signup | Opens the sign-up page first to create an Oxagen account, then the same consent page. It implies --browser. |
logout revokes this machine's sign-in on the server, then clears the stored session from ~/.config/oxagen/config.json. It clears the session even when the server can't be reached, and then warns that the key may still work. A token passed with --token is an API key, and logout leaves it working.
oxagen login # browser sign-in and an org and workspace picker
oxagen login --token ox_… --org acme --workspace main # CI or another machine without a browser
oxagen login --org acme --workspace payments # switch the default workspace
oxagen login --no-browser # paste a token instead of opening a browser
oxagen logout # revoke this machine's sign-in and clear the stored sessionSee Account setup.