MANUAL / RUNNING OSCAR 26 / 29

Global options (work with every command):

Option Meaning
--workspace <dir> (env OSCAR_WORKSPACE) the folder Oscar works in; default: the current directory
--home <dir> (env OSCAR_HOME) Oscar's data folder; default ~/.oscar
--profile <name>, -p (env OSCAR_PROFILE) use a profile: its own home ~/.oscar/profiles/<name>, settings, keys and gateway service (default is ~/.oscar); see operations
--provider <id> provider id or alias (openrouter, anthropic, openai-codex, deepseek…; see providers-and-models)
--model <id>, -m model id for this run, or provider:model for both at once (-m openrouter:moonshotai/kimi-k3; a custom provider's <name>:<model> too), or an alias from [model_aliases]; a model id with a colon of its own (qwen3:8b) stays a model id
--base-url <url> provider base URL for this run
--approve ask|auto|smart|never (env OSCAR_APPROVE) approval mode (see approvals-and-sandbox); default auto (dangerous commands still ask); smart: a reviewer model judges ask-tier calls first; manual is another name for ask, off for auto (never more than auto: dangerous commands still ask)
--yolo the same as --approve auto (for oscar, oscar chat and oscar run): calls that need approval run and are audited, dangerous commands still ask a human and are refused with nobody to ask; nothing is skipped. With --approve other than auto it is an error
--sandbox host|workspace|docker|ssh (env OSCAR_SANDBOX) where commands and file tools reach (see approvals-and-sandbox)
--line plain line chat instead of the full-screen interface
--max-turns <n> model calls one turn may make before it stops and says where it got to; 0 for no limit (default: no limit in chats and on a terminal, 150 for runs nobody watches; config max_turns)
--allow-home-workspace <dir> workspace sandbox only: allow a workspace that is or contains $HOME (host mode starts anywhere)
--resume <session>, -r the session for the full-screen chat, chat or run: an id, a unique id prefix, a title (or part of one), or latest. A name that matches nothing is an error (exit 1); several matches are listed (exit 1)
--continue [title], -c continue this workspace's most recent session (a new one, said so, when there is none); with a title, the most recent session that has it. In oscar run the next word is the task, so give a title as --continue=TITLE (or use -r)
--reasoning <level> reasoning effort for this run or chat: none, low, medium, high, xhigh (over reasoning_effort)
--image <path> attach an image to the first message of a chat, or to the task of oscar run (repeatable; relative paths are in the workspace)
--ignore-rules leave the workspace's context files (AGENTS.md, OSCAR.md, CLAUDE.md, .cursorrules, …) out of the prompt
--safe-mode troubleshooting: no plugins, hooks, MCP servers, Lua tools, or skills from project and extra folders. Approvals, the sandbox and the workspace guard stay exactly as they are
--ignore-user-config use the built-in defaults instead of config.toml (keys still come from the environment and credentials.env); the approval settings (mode, allow and deny rules, the unattended policy) and the sandbox settings still apply, so it never loosens them; config.toml is not written either
--verbose, -v more log lines on stderr (-vv for everything)
--quiet (-q before the subcommand) only errors on stderr; the log files keep everything. oscar chat -q is the first message instead

Top-level only (for the full-screen chat started by plain oscar): --skill <name> (-s, repeatable or comma-separated), --tools <list> (-t, --toolsets), --no-tools <list> and --worktree (-w: the chat works in a new git worktree, see below).

Chat and tasks

  • oscar — full-screen chat (setup first if nothing is configured); oscar -c continues this workspace's most recent session, oscar -r <session> any session, in the folder it worked in (asked first on a terminal; --here keeps the current folder). --create-if-missing with -r <title> starts a session with that title when none matches.
  • oscar chat [--session <s> | --new-session-id <id>] [-q "<text>"] [--skill <name>]… [--tools <list>] [--no-tools <list>] — chat. --session continues a session found by id, id prefix or title (like -r); --new-session-id starts a session with an id of your choosing (an id in use is an error). -q / --query sends a first message exactly as typed (never read as a /command) and leaves the chat open. --skill (-s, repeatable or comma-separated) loads skills for the whole session. -w / --worktree works in a new git worktree on a new oscar/… branch, like oscar run --worktree; when the chat ends an unchanged one is removed, one with changes kept (chat). In the chat, /help lists the commands (any case; /reset, /fork, /q, /s, /tasks, /ctx and /quit are short names), Ctrl+P searches them, and [[quick_commands]] in config.toml add your own; the full-screen chat leaves the last exchanges in the scrollback when it closes (exit_transcript). See chat-and-tui.
  • oscar run ["<task>" | -] [options] — one task, then exit. The task is the argument, the file --query-file <path> (-: stdin; nothing in it is read by a shell), or stdin when the argument is left out or is -:
    • --session <s> / --new-session-id <id> / -r / -c — which session (see above); without them a new session.
    • --format text|json|stream-json — text (default) streams the answer; json (also --json) prints one envelope at the end (ok, session, model, text, turns, usage, cost_usd, exit_code); stream-json prints one JSON object per line as things happen (below).
    • -z / --bare — only the final answer on stdout, nothing at all on stderr, and nobody is asked anything; judge the run by its exit code.
    • --usage-file <path> — write the tokens, cost and outcome as JSON at the end, also when the run fails (fields below).
    • --run-budget <$|tokens> — stop once the run has spent this much: dollars ($0.50, 0.5$, or a number with a point; needs the model's price) or tokens (200000, 200k, 1m). It stops the turn, says what it spent and how to carry on (oscar run -r <session> "continue"), and exits with code 3.
    • -r <session> moves to the folder the session worked in (said on stderr); --here stays.
    • --skill <name> (-s), --tools <list> (-t, --toolsets), --no-tools <list>, --worktree (below).
    • --system-ephemeral <text|@file> — added to the end of the system prompt of every request and never saved to the session (@path reads a file; @@ for a literal @); ephemeral_system_prompt in config.toml does the same on every surface.
    • --prefill-file <path> — messages put before the conversation in every request and never saved: JSON (a list of {"role": "user"|"assistant", "content": "…"}, or {"messages": […]}) or JSON Lines. For scripts and evaluations.
  • --worktree works in a new git worktree on a new oscar/… branch (in the workspace's .oscar/worktrees/), never in the checkout, and says on stderr what became of it: removed when nothing changed, else kept with the changed files listed (tools); oscar worktree lists, prunes and restores them.
  • --tools files,shell offers only those tools or groups for this run or chat (after tools / tools_cli in config.toml); --no-tools web,browser takes them away (toolsets). Group names other agents use work too: terminal and process (= shell), file (= files), cronjob (= jobs), search (= web), vision, image_gen and tts (= vision_analyze, image_generate, text_to_speech), code_execution (= code), delegate (= delegation), messaging (= chat), todo (= todo_list).

Exit codes of oscar run

Code Meaning
0 the task finished
1 an error: the provider, the configuration, a session name that matches nothing (or several), an empty task
2 a tool call needed an approval nobody could give (no terminal, -z, approval mode never, the smart reviewer refused, a dangerous command with nobody attached); the run itself finished, without that call
3 --run-budget was spent: the run stopped there (the session is saved)
130 interrupted (Ctrl-C; a second Ctrl-C leaves at once)

A malformed command line (an unknown flag) also exits 2, before anything runs, with the reason on stderr. A call refused by a deny rule or the policy's deny tier is not an approval nobody could give: that run exits 0.

--format stream-json

Every line on stdout is one JSON object with a type and a time (Unix milliseconds); notes and logs stay on stderr. Tool events carry names only, never arguments or output.

type Fields
start session, model, provider
delta text — a piece of the answer as it is written
tool_call name
tool_result name, ok
tool_rejected name, code (refused by policy or approval, invalid, cut off)
approval name, decision (allowed or refused)
usage prompt_tokens, completion_tokens, cached_tokens, cache_write_tokens (one per model call)
final always last: ok, exit_code, session, model, and text, turns, usage, cost_usd when the run finished, error when it did not

The process exit code matches the final line's exit_code.

--usage-file

{"session", "model", "provider", "prompt_tokens", "completion_tokens", "cached_tokens", "cache_write_tokens", "total_tokens", "cost_usd", "turns", "exit_code", "ok", "refused", "interrupted", "error"} — cost_usd is null when the model's price is unknown; error is null unless the run failed.

Examples:

shell
answer=$(oscar run -z "What is the capital of France?")
git diff | oscar run --format json "Review this diff"
oscar run --query-file prompt.txt --format stream-json --usage-file usage.json
oscar run -c "carry on with the next step"
oscar -r "weekly report" run "add this week's numbers"
oscar run --new-session-id nightly-42 "summarise today's logs"
oscar chat -q "Look at the failing test in src/parser.rs"
  • oscar batch <prompts.jsonl> --out <dir> [--workers N] [--approve never|auto] [--toolsets LIST] [--no-tools LIST] [--keep-workspaces] [--retry-failed] — many prompts unattended, each in its own session and temporary workspace; results as JSON lines in <dir>/results.jsonl (answer, conversation, tool calls, tokens, cost, outcome) and a summary.json. Running it again resumes. Approvals are never unless --approve auto is given on the command line; dangerous commands are always refused. See batch runs.
  • In a terminal chat, /handoff <telegram|discord|matrix> [chat] moves the session to a chat (a new thread where it can); !handoff cli there brings it back. See chat.
  • oscar sessions — recent sessions (see below).
  • oscar approvals list — the allow and deny rules, the approval modes, the reviewer, the timeout and the unattended policy.
  • oscar approvals add "<pattern>" [--deny] — add an allow (or deny) rule: a command pattern (git status, cargo test *) or a tool name (web_fetch, mcp_github_*); written to config.toml, used at once everywhere.
  • oscar approvals remove "<pattern>" [--allow] [--deny] — remove a rule (from both lists unless one is named).
  • oscar approvals suggest [--min <n>] [--add <n,n>] — allow rules for commands and tools the audit log shows approved at least n times (default 3); pick on a terminal or with --add (approvals and sandbox).
  • oscar rollback — the recent checkpoints (automatic ones: the files each turn changed, as they were before it); oscar rollback <n|id> puts those files back. Restoring asks like any write (--approve auto approves and audits it; ask without a terminal refuses) and exits non-zero when nothing was restored.
  • oscar checkpoints [status|list [--limit N]|prune [--older-than DAYS] [--dry-run]|clear [--yes]] — the checkpoint store itself: how many there are (automatic and manual), the room they take, the oldest and the newest (status, the default); the recent ones with their files (list); deleting those older than DAYS, or without --older-than the automatic ones beyond checkpoint_keep (prune); deleting all of them (clear, asks first; --yes without a terminal). Restoring stays with oscar rollback.
  • oscar worktree [list|prune [--dry-run]|restore <name>] — the git worktrees made for helpers and oscar run --worktree (each on an oscar/… branch): their branch, folder and whether they hold changes (list, the default); removing the ones without changes and their branches, and forgetting records whose folder is gone (prune; a worktree with changes is never removed); bringing back the folder of a worktree whose branch was kept (restore).
  • oscar prompt-size [--surface <s>] [--json] [--all-tools] — what every request carries before the conversation: the system prompt part by part (identity, each context file, memory, the skills index, skills always loaded, the memory provider's note, the rest of the guidance) and the tool definitions (the largest first; default surface tui), in characters and estimated tokens, and the share of the model's window. Offline: nothing is sent, no key is needed. --ignore-rules and --safe-mode show what they save.

Sessions and insights

Sessions are named by an id (s-20261123-101500 for the terminal, telegram-…, matrix-…, discord-… for chats, cron-… for scheduled jobs) and, after their first reply, a short title. Wherever a command takes a session, an id, a unique id prefix or a title (or part of one) works; when several match, the command lists them.

  • oscar sessions list [--archived | --all] [--search <words>] [--origin <origin>] [--workspace <dir>] [--since <when>] [--limit N] [--json] — newest first: id, last activity, messages, origin, title (or the first message), and marks (pinned, archived). --search finds words in titles, ids and messages; --origin keeps one origin (terminal, telegram, matrix, discord, cron, kanban, api, editor, dashboard, other); --workspace the sessions started in a folder (.: this one); --since those active since 7d, 24h, 30m, 2w or a date (2026-11-01). Plain oscar sessions is list.
  • oscar sessions show <session> — its details (model, workspace, times, tokens and cost, the session it was branched from, what refers to it) and its last messages.
  • oscar sessions rename <session> <title…> — set the title (empty clears).
  • oscar sessions export <session> [--format md|json|html] [--out FILE] — Markdown to read (long tool outputs shortened), JSON with every message, tool call and result, or one self-contained HTML page; stdout without --out (a file is written readable only by you). Secrets are redacted; tool outputs are included as stored. oscar sessions export --all --out DIR [--format …] writes every session with messages into DIR, one file each (<id>.md, readable only by you).
  • oscar sessions archive <session> / unarchive <session> — an archived session leaves the lists (--archived shows it), stays searchable, and comes back by itself when you write in it again. oscar sessions archive --older-than DAYS [--dry-run] archives every session idle that long.
  • oscar sessions pin <session> / unpin <session> — housekeeping never archives or deletes a pinned session.
  • oscar sessions delete <session> [--yes] — delete it with its messages and usage. It asks first (without a terminal --yes is required), names what still refers to it, and refuses a pinned session.
  • oscar sessions prune --older-than DAYS [--dry-run] [--yes] — delete every session idle for more than DAYS days, except those something refers to: pinned sessions, sessions a scheduled job was created in or ran in, sessions a kanban card links to, and the conversation a chat gateway's chat is currently on (listed as kept). oscar sessions prune --keep N [--origin <origin>] [--older-than DAYS] keeps the N most recent sessions (of that origin) and deletes the older ones (with --older-than, only those idle that long), with the same exceptions.
  • oscar sessions tidy [--dry-run] — apply the configured housekeeping now (below).
  • oscar sessions stats — sessions (archived, pinned, titled, empty), messages, tokens, recorded cost, sessions by origin, the database size.
  • oscar sessions optimize — compact the search index and the database file (VACUUM); a running gateway waits for it, nothing is lost.
  • oscar sessions import claude-code|codex [--from DIR] [--session ID | --all] [--limit N] [--force] [--dry-run] — a conversation from Claude Code (~/.claude/projects/*/*.jsonl, or $CLAUDE_CONFIG_DIR) or Codex CLI (~/.codex/sessions/**/rollout-*.jsonl, or $CODEX_HOME) as an Oscar session imp-claude-<id> / imp-codex-<id>, titled "Imported from …". The user's and the assistant's messages come over, redacted, with tool calls kept as text ([tool Bash: ls], [result: …]); reasoning, system prompts and injected context stay behind. Without --session it lists the conversations (newest first; a terminal asks which). Credential files (.credentials.json, auth.json, anything named like a token) are never opened, and the source files are never changed. Importing again says where the copy is; --force imports it afresh. oscar -r @claude:<id> (or @codex:<id>, or @claude for the newest) imports and continues it in one step.
  • oscar insights [--days N] [--json] — the last N days (default 30): sessions (by origin), messages, tokens, cost at today's prices (and as recorded at the time), each model's share, the most used tools, approvals (granted automatically, refused by an approver — you or approval mode never — or by policy, and the decisions you made when the audit log records them) and the busiest days (UTC). Automatic approvals and recorded decisions come from audit/approvals.jsonl, refusals from the conversations. /insights in the terminal chats and insights in chat gateways show it too (short in a chat).

Session housekeeping

session_archive_after_days archives sessions idle that many days; session_retention_days deletes sessions idle that many days (set in config.toml, see configuration). Neither is set by default. oscar gateway serve applies them once a day (at most once in 24 hours, also across restarts) and logs what it did; oscar sessions tidy applies them now. Pinned sessions are never archived or deleted; sessions a scheduled job or a kanban card refers to, and the conversation each chat is currently on, are never deleted by housekeeping (it says it kept them), and deleting one by hand names the reference first.

oscar sessions repair [--dry-run] [--db state|gateway|all] [--force] — check the session and gateway databases and rebuild a damaged one from what is readable (a backup first; the damaged file is kept; see operations).

In the chats: /sessions, /resume, /branch, /rewind, /title, /save and /insights (chat), and sessions, resume, branch, rewind, title, save, insights in chat gateways.

Setup and models

  • oscar setup [section] [--key-stdin] [--skip-verify] [--quick] [--reset <section>] [--non-interactive] — the provider (key, model, verification), then where commands run (the sandbox), the tools each surface offers, chat gateways, voice, web search, the browser, the memory provider and the gateway service, each skippable; writes config.toml and credentials.env. A second run shows what is set and changes only what you change. section runs one part: provider, sandbox (also terminal), tools (also toolsets), gateways, voice, web, browser, memory, service. --quick: only the provider and the model. --reset <section>: that part's settings in config.toml back to the defaults (asks first on a terminal; keys in credentials.env are kept), then that part is set up again on a terminal. --non-interactive: never ask, as without a terminal. Without a terminal: --sandbox-mode <mode>, --docker-image, --ssh-host, --ssh-user, --ssh-port, --ssh-key, --ssh-workspace, --toolsets <list>, --matrix-homeserver <url>, --matrix-allowed, --telegram-allowed, --discord-allowed <users>, --tts-backend, --stt-backend, --web-backend, --browser <mode>, --browser-cdp-url <url>, --memory-provider <name>, --skip-probe, and secrets as NAME=value lines on stdin with --secrets-stdin (see operations).
  • oscar model — on a terminal, a picker: the providers, each with whether it has a key or a sign-in here (type to search); then the sign-in or the key when it needs one (the same flows as oscar setup; a key is typed hidden and saved to credentials.env); then the provider's models from its catalogue (type part of a name; Enter on nothing listed takes what you typed); an optional one-request check; saved to config.toml. Without a terminal: the current provider/model/base URL and where each came from.
  • oscar model <provider:model> (or a model id of the configured provider, a custom provider's <name>:<model>, or an alias) — validate and save directly, like oscar model set. Custom providers from config.toml head the picker's list.
  • oscar model list [--refresh] — models the provider serves (live, cached for an hour, or a built-in list); unusable ones are marked with the reason.
  • oscar model set <id> [--provider <id>] — validate and save as default.
  • oscar model alias add <name> <provider:model>, remove <name>, list — the [model_aliases] table: short names usable in -m, /model, the fallback list, helper routing and the side-task models.
  • oscar fallback [list] — the fallback chain (fallback in config.toml: models tried in order when the provider fails), each entry with whether it has a key or sign-in. oscar fallback add <provider:model> [--at N], remove <N>, clear edit it; oscar fallback check [--live] checks every entry (--live: one small request each, on its own provider and model) and exits 1 when one is not ready.
  • oscar model catalogue [--refresh] [model] — the models.dev catalogue's state, and a model's context window, output limit and prices (default: the configured model); --refresh fetches the catalogue now.
  • oscar doctor [--probe] — configuration (an auto-detected provider says why), custom providers and aliases, the side-task models, key source, key pool (how many keys, the strategy, which are resting), retries and the fallback chain, limits and where they came from, the catalogue and the model's prices, OpenRouter routing, keys read from secret managers, sandbox state (with docker: whether Docker answers and the container's settings; with ssh: whether the host answers), language servers, approvals (the unattended policy, the reviewer, the timeout, the rules), where helpers run and whether they can have worktrees, Lua tools, tool search, skill folders and their trust, optional components, hooks; --probe contacts the provider. It ends with a verdict and exits 1 when something keeps a configured Oscar from working (a provider without its model, key or sign-in; a failed probe); nothing set up yet is not a failure. --fix first fixes what can be fixed without losing anything: file modes (0600 for credentials.env, the other *.env files, dashboard.token and everything under auth/, vault/ and audit/; 0700 for the home and those folders), missing folders (skills, logs, cache), temporary files left by a process that is gone, and the bundled skills (your edits kept).
  • oscar auth login <provider> [--browser] [--import-codex-cli] [--no-browser] [--region global|cn] [--timeout <s>] — sign in to openai-codex (alias chatgpt), qwen-oauth or minimax-oauth; oscar auth login openrouter creates an OpenRouter key through OpenRouter's browser flow and saves it in credentials.env; oscar auth status; oscar auth logout <provider>.
  • oscar auth keys list <provider> — the provider's key pool in the order it is tried: place, variable, fingerprint, whether it is resting (never a key). oscar auth keys add <provider> [--oauth] (the key from stdin or a hidden prompt; --oauth mints one for OpenRouter), remove <provider> <n>, priority <provider> <n> <position>, reset <provider> [n] (put resting keys back in service). Custom providers with a key_env work too.
  • oscar usage [--session <name>] [--offline] — a session's duration, context fill, tokens and cost split (input, output, cache reads; the most recent session by default), and the provider account's limits where an API tells: OpenRouter credits and the key's limit (skipped with --offline), and the rate limits the last responses reported (OpenAI, Anthropic, the Codex five-hour and weekly windows). Unknown limits say so.

Operations

See Operations for each in detail.

  • oscar pause [--resume] — the emergency stop: the gateway starts no new chat turns, scheduled jobs or board cards (running ones finish) until --resume; the same switch as !pause all.
  • oscar update [--check] [--channel stable|beta] [--tag <tag>] [--allow-downgrade] [--yes] [--restart] — install the newest release of the channel from the signed release manifest (update_manifest): its minisign signature is checked before anything in it is read, then the archive's size and SHA-256 against it; an older manifest than one already seen, or a release older than this one (without --allow-downgrade), is not installed. --tag also takes an older release from the public repository (update_releases), checked through its signed SHA256SUMS. Keeps the old binary as .oscar.previous. oscar update --rollback swaps them back; oscar update --from-source [dir] pulls, builds and installs a checkout. update_source = forge keeps the old forge route. Never automatic; asks first on a terminal (--yes otherwise).
  • oscar backup [--out <file>] [--include-secrets] [--all-profiles] — Oscar's home as a .tar.gz (mode 0600) without caches; secrets only when asked. --all-profiles: every profile in one archive.
  • oscar restore <file> [--dry-run] [--force] — checks every entry, then swaps the restored home in; --force moves an existing home aside. An archive of every profile restores each into its own home.
  • oscar profile list|create <name> [--from <profile>] [--with-secrets]| delete <name> [--yes]|show [name]|use <name>|rename <old> <new>|export <name> [--out <file>] [--include-secrets]|import <file> [--name <name>] [--force]|alias <name> [--remove] [--dir <dir>] — separate homes side by side. use makes a profile the one used when none is chosen (kept in ~/.oscar/active-profile; --profile, OSCAR_PROFILE and OSCAR_HOME still win; use default goes back to ~/.oscar). rename refuses the default profile and a profile whose gateway service is installed or running.
  • oscar profile clone <from> <name> [--with-secrets] — a new profile with everything of <from> (skills, memory, personalities, config.toml with its rooms, MCP servers marked untrusted) except its secrets, sessions and history; --with-secrets copies credentials.env, the other *.env files, sign-ins and keys too (kept private). See operations.
  • oscar profile install <git-url|archive|folder> [--name <name>] [--yes] [--accept-risky] / oscar profile update <name> [--yes] [--accept-risky] — a profile from a shared repository (config.toml without keys, SOUL.md, skills, personalities, mcp.json): shown first, every setting with its value; a repository with secrets is refused; skills and MCP servers stay off (servers untrusted) and hooks and other settings are left out unless you say yes; risky settings (key_cmd, custom providers, base_url, sudo, allowed users, private fetches …) need a yes at a terminal or --accept-risky (--yes alone leaves them out). update keeps the files you edited. See operations.
  • oscar config show|get <key>|set <key> <value>|unset <key>|edit|check|path — read and change config.toml (comments kept; values checked; secrets masked). set with an UPPER_SNAKE name that is not a setting (OPENAI_API_KEY, TELEGRAM_BOT_TOKEN) writes it to credentials.env (mode 0600) instead, never echoing the value; a value of - is read from stdin (hidden on a terminal), which keeps it out of the shell history; unset NAME removes it there. Values may refer to variables as ${NAME} (from the environment or credentials.env); check warns about references nothing resolves.
  • oscar hooks [list]|test <event> [--tool <name>]|doctor|allow [n…]|revoke [n…|--all] — the hooks from config.toml and plugins with their consent (list, the default); run one event's hooks with a made-up event and show what each printed, decided or would hand back (test; any event, e.g. pre_llm_call, transform_tool_result, message_received, job_end); check every hook — config.toml readable, the program found, a test run within its timeout, a valid decision, consent, event webhook secrets — and exit 1 when one is broken (doctor); record your consent for every hook in config.toml or the numbered ones (allow; from then on a new or changed hook does not run until allowed) and take it back (revoke). See hooks.
  • oscar uninstall [--keep-data | --delete-data] [--yes] [--dry-run] — remove the binary this command runs from (and the .oscar.previous that oscar update keeps beside it) and this home's gateway service when one is installed; a service whose unit names another home is left alone. Oscar's data (the home folder) is kept unless you say otherwise: asked on a terminal, deleted without asking only with --delete-data. --yes is needed without a terminal.
  • oscar logs [gateway|agent|errors|audit|tui] [-f|--follow] [--since <duration>] [--grep <pattern>] [-n <lines>] [--file] — logs, masked; the gateway's from journald when its service is installed.
  • oscar status [--all] — version, profile, model, gateway state, platforms, jobs, recent errors; --all: every profile, briefly.
  • oscar dump [--out <file>] [--lines <n>] — a masked diagnostics report for bug reports.
  • oscar completion bash|zsh|fish|elvish|powershell — a shell completion script.

Moving from another agent

  • oscar import [--from <dir>] [--apply] [--keys] — bring your memory (MEMORY.md, USER.md), SOUL.md, your own skills, provider, model, fallback and approval settings and MCP servers over from your previous agent's home folder (found in its usual place under your home folder, or named with --from). Without --apply it only shows what would change. Memory is merged within Oscar's budgets; what does not fit is listed and saved to $OSCAR_HOME/import-leftovers/. Skills are linted and scanned; ones that name your previous agent are flagged for you to review, never edited. Approvals are never loosened. Its side-task models: the provider:model most of them shared becomes aux_model; vision, summaries, titles, the approval judge and reviews (its curator or background review) set vision_model, compression_model, title_model, approval_model and review_model where they differ. Each setting is written only where config.toml has none, checked like oscar config set; providers Oscar does not have, side tasks it has no setting for, and per-task reasoning and timeouts are listed as left out. MCP servers are shown first (what each runs or where it connects, values masked) and added untrusted (their writes ask a person); a ${NAME} they read is renamed to MCP_<SERVER>_<NAME>, the only variables an untrusted server may read. API keys from its .env are read only with --keys (names listed, values never shown; on a terminal you confirm before they are written to credentials.env). Sign-ins are not carried over: the token file is never read; run oscar auth login <provider> again.
  • oscar import claude-code|codex|cursor [--from <dir>] [--dry-run] [--apply] — from that agent's setup (~/.claude with ~/.claude.json, ~/.codex, ~/.cursor, and the workspace's .mcp.json / .cursor/mcp.json and project commands): instruction files saved as a note in import-leftovers/, MCP servers into mcp.json untrusted and off, skills and commands as skill proposals. Never keys, sign-ins or credential files (--keys is refused), and links inside its folders are not followed (a linked file or folder is left out; folders are read at most 8 deep). Without --apply a terminal is asked; otherwise it only shows the plan. See getting started.

Skills, learning, memory

  • oscar skills list|lint|index — inspect and check skills (list shows where each skill comes from, project and extra folders not yet trusted, and skills left out because of a name clash).
  • oscar skills trust [path] / untrust [path] — use (or stop using) the skills in a folder from outside Oscar's home, as it is now (default: the workspace's .oscar/skills and .agents/skills); asked again when its files change.
  • oscar skills check <name> — what a skill needs (keys, settings), what is set and where; exits non-zero when something is missing.
  • oscar skills archive <name> / restore <name> — move an agent skill.
  • oscar skills search <words> [--limit <n>] [--site <url>] — find skills on skills.sh and ClawHub, or in a site's /.well-known/skills/ index.
  • oscar skills install <source> [--name <n>] [--force] [--yes] — from GitHub (owner/repo[/path][@ref] or a link), skills-sh:owner/repo/skill, clawhub:slug, a URL to a SKILL.md or an archive (url#dir picks one skill). Linted and scanned; nothing is run; skills with scripts need your yes (--yes off a terminal); dangerous findings refuse unless --force.
  • oscar skills update [name] [--check] [--force] [--yes] — update installed skills from their source; edited copies need --force.
  • oscar skills uninstall <name> [--yes] — remove an installed skill.
  • oscar skills tap add <owner/repo|index-url> [--name <n>], tap remove <name>, tap list — skill sources of your own.
  • oscar skills browse [--source <tap|clawhub|url>] [--page <n>] [--per-page <n>] — a source's skills, a page at a time.
  • oscar skills inspect <source> [--name <n>] — files, scan findings and provenance of a skill, without installing it.
  • oscar skills audit [--all] — scan installed skills again as they are on disk (fails on dangerous content).
  • oscar skills pin|unpin <name> — never archived by the curator, never deleted by the agent.
  • oscar skills lock|unlock <name> — nothing automatic changes it.
  • oscar skills history [name] [--limit <n>] — the recorded automatic changes; oscar skills rollback <name> [change] undoes one.
  • oscar skills adopt <name> — an agent-managed skill becomes yours.
  • oscar skills bundle list|show <name> — skill bundles (/bundle).
  • oscar learn <url|file|dir|text> [what you want from it] [--apply] — turn a source into a skill (a large one: a skill with reference files), written at once, or a proposal with skill_review_apply = "propose" (--apply accepts it at once).
  • oscar proposals list|show <id>|accept <id>|reject <id> — review.
  • oscar curator status|run [--now] [--dry-run]|state|consolidate|purge [--days <n>] [--dry-run] — skill lifecycle. run --idle-hours <n> pretends Oscar has been idle that long (for testing the thresholds); consolidate [--dry-run] [--threshold <0-1>] merges agent-written skills whose name and description are at least that similar (default 0.6; never automatic).
  • oscar journey [list|show <node>|delete <node>|edit <node>] — what has been learned: skills, memory entries, state, uses.
  • oscar memory list|add "<text>" [--user]|remove <n> — long-term memory. oscar memory pending lists the memory changes waiting for a yes (with memory_write_approval = "ask"); oscar memory approve <id|all> applies one (or every one), oscar memory reject <id|all> drops it.
  • oscar soul [--init] [--path] — show or create SOUL.md; --path prints only where it is.
  • oscar context — which project files load (.oscar.md/OSCAR.md, the AGENTS.md chain and CONTEXT.md, CLAUDE.md, or .cursorrules; the first kind found wins).

Tools and where they run

  • oscar tools list [--surface cli|tui|matrix|telegram|discord|api|acp|cron] — every tool a surface can offer, its group, on or off, and why (which setting decided it). Without --surface, every surface.
  • oscar docker clean [--all] — remove the containers the Docker backend left behind (their Oscar process is gone); --all removes every Oscar container, running ones included.
  • oscar lsp status [--probe] — the language server per language (configured, found on PATH, or not installed) and recent failures; --probe starts each one, initializes it and shuts it down.

Plugins

See Plugins. These need only Oscar's home.

  • oscar plugins list — the plugins in $OSCAR_HOME/plugins, their version, state (enabled, disabled, not enabled, stopped because their permissions changed, invalid) and where they came from.
  • oscar plugins info <name> — manifest, permissions, what it brings (tools, skills, hooks, MCP servers, commands, settings), source, commit, content hash, whether it was edited, and any load problems.
  • oscar plugins install <source> [--force] [--yes] — from a git URL (https://host/repo.git, git+https://…, ssh://…, git@host:…, file://…/repo.git; #ref picks a branch, tag or commit), a folder, or an archive (.tar.gz, .tgz, .tar, .zip; a file or an https URL, url#dir picks the plugin's folder). Shows the permissions and what it brings, scans it, and installs and enables it after your yes (--yes off a terminal); dangerous findings refuse unless --force. Nothing is run.
  • oscar plugins enable <name> [--force] [--yes] — turn one on, accepting the permissions shown (also for a folder placed by hand, and after its permissions changed); oscar plugins disable <name> — turn it off.
  • oscar plugins update [name] [--check] [--force] [--yes] — fetch again from the recorded source; new permissions need your yes, edited copies need --force.
  • oscar plugins config <name> [KEY [VALUE] | KEY --reset] — show, read, set or reset the plugin's settings.
  • oscar plugins remove <name> [--yes] — remove the folder, its record and its settings.
  • oscar plugins search <words> [--refresh], oscar plugins browse [--refresh] — plugins in the catalogs plugin_catalog names (cached for six hours), installed ones marked, with the command that installs each.
  • oscar plugins outdated [--refresh] — installed plugins a catalog lists in a newer version. oscar doctor mentions them from the cached copy.

Dashboard

See The web dashboard.

  • oscar dashboard [--listen <addr>] [--public] — the local web dashboard on 127.0.0.1:8650: status, chat, sessions, analytics, jobs and the board, skills (on/off, the hub, the curator) and proposals, MCP servers, chat platforms and pairing, the gateway service, hooks, plugins and their pages, memory, settings, other profiles, logs. It prints a sign-in link with a new access token (also in $OSCAR_HOME/dashboard.token, mode 0600); with OSCAR_DASHBOARD_KEY set, that key is the token. Another address needs --public and OSCAR_DASHBOARD_KEY (16 characters or more) or a dashboard user; put TLS in front of it.
  • oscar dashboard user add <name> [--password-stdin], passwd <name> [--password-stdin], remove <name>, list — users who sign in with a name and password (at least 12 characters; Argon2id hashes in $OSCAR_HOME/dashboard-users.json, mode 0600).

Saved logins (vault)

  • oscar vault … — logins the browser can fill without the model seeing them, 2FA codes, the passphrase and the 1Password / Bitwarden backends; oscar vault add-card --site <origin> and add-address --site <origin> save payment cards and addresses for checkout forms. See The vault.
  • oscar vault add <origin> [--username <name>] [--password-stdin] [--totp <key|uri|->] [--handle <name>] [--subdomains] [--from <ref>] — save a login; the password is asked hidden (or read with --password-stdin, or left in a password manager with --from op://…|bw:…|bws:…|cmd:…), never taken from the command line; --totp - asks for the 2FA key hidden; --subdomains also uses it on subdomains.
  • oscar vault add-card --site <origin>… [--name <name>] [--label <word>] [--handle <name>] [--stdin] — a payment card (number, expiry and code asked, the number and code hidden; --stdin: three lines).
  • oscar vault add-address --site <origin>… [--name] [--organization] [--street] [--street2] [--city] [--region] [--postal-code] [--country] [--phone] [--email] [--label] [--handle] — an address for checkout forms (missing parts asked on a terminal).
  • oscar vault list — logins, cards and addresses (never passwords or card numbers); oscar vault code <handle> — a login's current 2FA code; oscar vault remove <handle> — delete a local login, card or address.
  • oscar vault passphrase [--stdin] [--remove] — protect the vault with a passphrase (re-encrypted), or go back to a key file.

MCP servers

  • oscar mcp catalog [search] — the built-in catalog of remote servers.
  • oscar mcp add <name> [--url <url> | --command <program> -- <args>] [--header NAME=VALUE] [--env NAME=VALUE] [--auth none|oauth] [--timeout <s>] [--trust trusted|untrusted] [--cwd <dir>] [--lazy] [--force]; oscar mcp remove <name>; oscar mcp list (each server's state: tools cached, sign-in, turned off, untrusted, lazy, sampling). The other settings (enabled, connect_timeout, idle_timeout, max_lifetime, identity_header, client_cert, client_key, sampling) go in mcp.json; see connectors.
  • oscar mcp enable <name> / oscar mcp disable <name> — switch a server on or off (enabled in mcp.json); its trust stays as it is.
  • oscar mcp serve — Oscar's sessions for other MCP clients over stdio: sessions_list, sessions_search, session_messages, session_send (a turn under the unattended policy, unattended_approve, as for scheduled jobs — nobody is asked; with approvals ask chosen and no unattended_approve it is refused). See integrations.
  • oscar mcp login <name> [--device] [--browser]; oscar mcp logout <name>; oscar mcp refresh [name] — reconnect and re-read tool lists (and whether a server offers resources and prompts). In the chats, /reload-mcp (terminal) and !reload-mcp (gateways, admins) do the same for every server and say what changed.

Chat gateways

  • oscar gateway serve — every configured platform (Matrix, Telegram, Discord) in one process; a platform that fails is restarted, the others keep running (chat-gateways). Chats are answered side by side (max_concurrent_turns). It also runs scheduled jobs, when switched on the board worker, and with webhook_listen set the webhook listener. SIGTERM or Ctrl-C drains it: no new turns, the running ones get drain_timeout seconds; a second signal stops at once.
  • oscar gateway install [--dry-run] [--start] [--user|--system] [--env-file <path>]... — install oscar gateway serve as the systemd service oscar-gateway.service (oscar-gateway-<name>.service for profile <name>) and enable it (--start: start it too; --dry-run: print the unit and the commands, change nothing).
  • oscar gateway uninstall [--dry-run], oscar gateway status|start|stop|restart (each takes --user / --system) — wrap systemctl; stop and restart drain (the unit waits drain_timeout + 30 s before killing). The unit gives up after five failed starts in ten minutes.
  • oscar gateway list [--all] — the gateway of every profile: service and its state, running processes, platforms; --all also lists profiles without one.
  • oscar send <matrix|telegram|discord> <target> <text> [--file <path>] — post into a chat without the model; <target> is a chat id or home. Only chats send_message may reach; the file passes the send_file checks. Encrypted Matrix rooms are refused here (only the gateway holds their keys).
  • oscar pairing list — pairing codes waiting for approval, and the people approved so far.
  • oscar pairing approve <code> [--platform <p>], oscar pairing deny <code> [--platform <p>] — let the person who got the code talk to Oscar, or refuse it.
  • oscar pairing revoke <user> [--platform <p>] — take an approval back (every platform unless --platform).
  • oscar webhooks list — the [[webhooks]], where the listener is, and whether each secret is set (never shown).
  • oscar webhooks test <name> [--payload <file>] [--event <e>] [--send] — the prompt a payload (a sample unless --payload) would make; --send posts it, signed like the real sender, to the running gateway.

Scheduled jobs

Jobs run in oscar gateway serve; see scheduling.

  • oscar cron list — every job (id, name, schedule, next run, where results go), the time zone, and whether a scheduler is running.
  • oscar cron add "<schedule>" ["<prompt>"] [--name <n>] [--deliver <targets>] [--repeat <n>] [--no-catch-up] [--paused] [job settings] — <schedule> is e.g. "every day at 9am", "every 30m" (or just "30m": a bare duration repeats), "in 20 minutes", "0 9 * * 1-5"; --deliver is platform:chat_id, a platform (its home channel), all (every home channel), several separated by commas, or none (the default: results are stored). The prompt may be left out with --script.
  • Job settings (for add and edit): --skills a,b, --model <model|provider:model>, --reasoning none|low|medium|high|xhigh, --workdir <dir> (inside the workspace), --timezone <zone>, --grace <minutes>, --toolsets <spec>, --script "<command>" (run instead of the model), --check "<command>" (exit 0 wakes the model, exit 1 skips the run), --context-from <job|self>, --wrap on|off|inherit.
  • oscar cron edit <job> [--schedule …] [--prompt …] [--name …] [--deliver …] [--repeat <n> | --no-repeat] [--catch-up on|off] [job settings] [--clear model,workdir,…] — change only what is given; --clear puts settings back to their defaults.
  • oscar cron show <job> — the prompt, settings, failure streak, planned re-run and recent runs.
  • oscar cron pause|resume|remove <job> — <job> is the id or the name.
  • oscar cron pause-all / oscar cron resume-all — every job at once (resumed jobs continue from now).
  • oscar cron run <job> — due now: the gateway runs it at its next check. --here: run it in this terminal, unattended as in the gateway; the result is printed and recorded, not delivered.
  • oscar cron cancel <job> — stop its run in flight (the gateway notices within seconds).
  • oscar cron runs [<job>] [--limit <n>] — recent runs, newest first, with their status (ok, error, timeout, skipped, cancelled, blocked_config, missed, interrupted), what started them and their delivery.
  • oscar cron status — whether the scheduler runs (its last check), the next runs, runs in flight, planned re-runs, and jobs that are failing, blocked or could not deliver.
  • Ready-made jobs: /blueprint in the terminal chats and blueprint in chat gateways fill one in and show it before it is created; /suggestions proposes some from your sessions (scheduling).

The board

See kanban.

  • oscar kanban boards; oscar kanban new-board <slug> [--name <n>] [--description <text>] [--columns a,b,c]; oscar kanban remove-board <slug>.
  • oscar kanban list [--board <b>] [--status <column>] [--assignee user|agent|helper] [--all]; oscar kanban show <n>.
  • oscar kanban add "<title>" [--board <b>] [--description <text>] [--assignee <who>] [--priority <n>] [--status <column>].
  • oscar kanban move <n> <column>, assign <n> <who|none>, comment <n> "<text>", link <n> <session|job|card|depends_on|url> <target>, archive <n>, remove <n>.
  • In the chat gateways, !kanban does the same without a model turn (add, move, assign, comment, link, show, archive, next, boards) and !kanban watch [board|#n] [wake] tells the chat when cards finish, block or fail; see kanban.

Matrix

  • oscar matrix probe — who the token belongs to.
  • oscar matrix sync — one sync: messages, invites, encrypted rooms.
  • oscar matrix send '<room>' '<text>' — send (refused in encrypted rooms).
  • oscar matrix create-room --invite <mxid> [--name <n>].
  • oscar matrix serve [--allowed <mxid,...>] [--require-mention] — run Matrix alone (matrix-gateway).

Telegram and Discord

  • oscar telegram probe — the bot's name and id, who is allowed (never the token).
  • oscar telegram owner [--wait <secs>] [--add] — wait for the first private message to the bot and say who sent it; --add puts them on telegram_allowed_users.
  • oscar telegram serve [--allowed <id|@name,...>] — run Telegram alone (telegram); with telegram_mode = "webhook" it listens on telegram_webhook_listen instead of polling (webhook mode).
  • oscar discord probe — the bot, its gateway, whether the Message Content intent is on in the developer portal, who is allowed, and an invite link.
  • oscar discord owner [--wait <secs>] [--add] — wait for the first direct message to the bot and say who sent it; --add puts them on discord_allowed_users.
  • oscar discord serve [--allowed <id|@name,...>] — run Discord alone (discord).

Voice

  • oscar transcribe <file> — the transcript of an audio file, with the configured speech-to-text (voice-and-images).
  • oscar voice status — what speech-to-text, text-to-speech, the recorder, the player and ffmpeg are on this machine.
  • oscar voice setup [--model tiny|base|small(.en)] [--url <mirror>] [--sha1 <hex>] [--force] — download a whisper.cpp model into models/whisper/ in Oscar's home, checked against its published SHA-1, so local speech-to-text works with nothing else to set.

Harness

  • oscar serve --jsonl — JSON-lines protocol on stdin/stdout.

API server and editors

See API server and editors.

  • oscar api serve [--listen <addr>] [--public] [--no-key] [--max-concurrent <n>] [--answer-timeout <secs>] — an OpenAI-compatible HTTP API (/v1/chat/completions, /v1/responses, /v1/models, /health), runs with their events and approvals (/v1/runs) and the stored sessions (/v1/sessions), backed by Oscar and its tools. Default address 127.0.0.1:8642; another address needs OSCAR_API_SERVER_KEY and --public. Without a key, the first start on loopback makes one (credentials.env, shown once on a terminal); --no-key serves without one (risky: any local program can use it). Web pages are refused (Host, Origin and Content-Type checks). --max-concurrent turns at once (default 4); a run waits --answer-timeout seconds (default 600) for an approval or an answer. A key holder can make Oscar run tools on this machine, and approve them.
  • oscar acp — the Agent Client Protocol on stdin/stdout, for editors (Zed and other ACP clients); each session works in the editor's project folder, with the editor's mode (approval) and model pickers, and the editor's MCP servers added untrusted.