Install
Oscar is a single static binary for Linux (x86_64 and aarch64). Install the newest release, verified before it is installed:
curl -fsSLO https://oscar-agent.com/install.sh
sh install.sh # → ~/.local/bin/oscar
sh install.sh --system # → /usr/local/bin/oscar
oscar --versionThe script reads the release manifest on Oscar's website (latest.json),
checks its minisign signature by Oscar's release key (with minisign, or
OpenSSL 3) and then the archive's size and SHA-256 against it, and installs
nothing if either check fails. The binaries come from Oscar's public
repository (Operations). When it is
done it says what to run next (oscar setup on a new machine). If
~/.local/bin is not on your PATH yet it says so: a new login shell
picks it up on most distributions (Debian, Ubuntu, Fedora), or add
export PATH="$HOME/.local/bin:$PATH" to ~/.profile.
From a checkout of the repository, with a Rust toolchain and a C compiler (some dependencies compile C code):
sudo apt install git build-essential # Debian/Ubuntu; dnf install git gcc on Fedora
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal
. "$HOME/.cargo/env"
git clone https://gitlab.com/ArkHost/oscar-agent.git && cd oscar-agent
./install.sh --from-source # release build → ~/.local/bin/oscarrustup installs the toolchain version rust-toolchain.toml names on the
first cargo run. A release build takes several minutes (about seven on
five cores) and links against the system's C library; the release
archives hold a static (musl) binary instead.
The script also builds from source by itself when there is no release yet.
No Python, Node or other runtime is needed to run Oscar. Later,
oscar update installs newer releases the same verified way, only when you
run it (see Operations).
First run
cd ~/projects/my-app # the folder you want Oscar to work in
oscarWith nothing configured, Oscar offers setup:
- Provider — one of more than forty: model APIs (Anthropic, OpenAI, DeepSeek, Gemini, …), aggregators (OpenRouter, OpenCode Go, …), clouds (Azure, Bedrock, Vertex), local servers, or a subscription you sign in to (ChatGPT/Codex, Qwen, MiniMax).
- API key or sign-in — a key is typed into a hidden prompt and saved to
~/.oscar/credentials.env(mode 0600); subscriptions open a sign-in. Keys are never written toconfig.tomland never printed. - Model — chosen from the provider's live list; models that cannot be used are marked.
- Verify — one small request checks the key and that the model accepts tools. Nothing is saved if it fails.
- Sandbox — where commands may run (see below). Choosing
workspaceon a machine that cannot start the sandbox says why, and what fixes it. - Approvals —
auto(the default: calls that need approval run and are written to the audit log; dangerous commands still ask you),ask,smartornever(see Approvals and the sandbox). - Workspace — the folder Oscar works in; leave it empty to use whichever
folder you start
oscarin.
oscar setup then offers the optional parts, each skippable: where commands
run (the sandbox, Docker or SSH), which tools Oscar offers, chat gateways
(Matrix, Telegram, Discord), voice, web search, the browser, a memory
provider and the gateway service. Run it again any time: it shows what is set
(secrets only as "set") and changes only what you change. oscar setup gateways (or sandbox, tools, voice, web, browser, memory,
service) runs one part; oscar setup --quick only the provider and model.
To switch provider or model later, run oscar model on a terminal: pick the
provider (each shows whether it has a key or a sign-in), sign in or paste a
key if it needs one, then type part of a model's name to find it. oscar model openrouter:moonshotai/kimi-k3 sets one directly.
Then the full-screen chat opens. Type a request; Tab completes / commands;
/help lists them.
Choose a sandbox mode
- host (default) — commands run on this machine as you, with network, like a terminal. Good for system and infrastructure work.
- workspace — only the workspace folder exists and there is no network. Good for untrusted tasks.
In both modes, commands that change things ask before running, dangerous ones
always ask a human, and Oscar's own folder (~/.oscar) is out of reach.
Change it later in ~/.oscar/config.toml (sandbox = "workspace") or per
run with --sandbox workspace. Details: Approvals and the sandbox.
Coming from another agent
If you used another agent before, bring your memory, persona, skills, settings and MCP servers over:
oscar import # shows what would change
oscar import --apply # does it
oscar import --apply --keys # also copies its API keys (you confirm first)Nothing is written without --apply. Memory is merged within Oscar's
budgets and anything that does not fit is saved to
~/.oscar/import-leftovers/ rather than dropped. Skills that mention your
previous agent by name are flagged for you to review. The models it used
for side tasks come over too: the one most of them shared becomes
aux_model, and image descriptions, summaries, titles, the approval judge
and background reviews get vision_model, compression_model,
title_model, approval_model and review_model where theirs differed
(side tasks Oscar does not have, and per-task reasoning and timeouts, are
listed as left out). Settings Oscar already has are never changed. Its MCP
servers are added untrusted: their writes ask you each time, and the variables they read
are renamed MCP_<SERVER>_* (the plan says which to set). Sign-ins do not
carry over: run oscar auth login <provider> for subscription providers. Oscar
finds your previous agent's home folder in its usual place; use
--from <dir> if it is elsewhere.
From Claude Code, Codex or Cursor
oscar import claude-code --dry-run # what would come over (~/.claude, ~/.claude.json)
oscar import codex # ~/.codex; on a terminal you confirm first
oscar import cursor --apply # ~/.cursor, without askingWhat maps cleanly comes over, and the rest is listed as skipped:
- Instructions (
~/.claude/CLAUDE.md,~/.codex/AGENTS.md, Cursor's user rules) are saved to~/.oscar/import-leftovers/<agent>-instructions.mdfor you to place: Oscar has no global instructions file, so put what should always hold in memory (oscar memory),SOUL.md, or a project'sAGENTS.md. In a workspace, Oscar already readsAGENTS.md,CLAUDE.mdand.cursorrules. - MCP servers (
~/.claude.jsonand this project's entry there, the workspace's.mcp.json,~/.codex/config.toml,~/.cursor/mcp.jsonand.cursor/mcp.json) are added tomcp.jsonuntrusted and off: look at each, thenoscar mcp enable <name>. - Skills and commands (
skills/<name>/SKILL.md,commands/*.md, Codex'sprompts/*.md) become skill proposals; nothing is enabled until you accept it (oscar proposals list,oscar proposals accept <id>). Scripts inside a skill folder are listed for you to copy by hand. - Never: API keys, sign-ins and credential files.
.credentials.json,auth.json,cli-config.jsonand env files are not even opened; an MCP server's secret environment value becomes a${MCP_<SERVER>_<NAME>}reference and a secret header a${MCP_<SERVER>_<HEADER>}one; the values go to credentials.env only with--keys(otherwise the report says what to set).--keysis refused with an agent name. Approval rules, hooks and model settings are not carried over either.
A server or skill whose name Oscar already has is skipped, so running the
import again only brings what is new. --from <dir> reads another folder.
Staying up when a provider fails
Add a fallback chain and, if you have them, more keys:
oscar fallback add openrouter:moonshotai/kimi-k3
oscar fallback add anthropic:claude-sonnet-5
oscar fallback check # does every entry have its key?That writes fallback = "openrouter:moonshotai/kimi-k3, anthropic:claude-sonnet-5" to ~/.oscar/config.toml.
# ~/.oscar/credentials.env
OPENROUTER_API_KEY_2=...See Providers and models.
Adding skills
oscar skills search pdf
oscar skills install skills-sh:owner/repo/pdfSkills are checked before they are installed and never run anything on install. See Skills, learning and memory.
Everyday commands
oscar # chat
oscar -c # continue the last chat in this folder
oscar -r "trip plans" # resume a chat by title, id or id prefix
oscar run "summarise CHANGELOG.md" # one task, then exit
oscar run -z "one-line answer only" # just the answer, for scripts
git diff | oscar run "review this" # the task from stdin
oscar chat -q "look at the failing test" # a chat that starts with this message
oscar model # pick a provider and model (on a terminal)
oscar model list # models you can use
oscar model set glm-5.3 # change the default model
oscar doctor --probe # check configuration and the provider
oscar doctor --fix # repair file modes, folders, bundled skills
oscar status # version, model, gateway, recent errors
oscar config set theme gruvbox # change a setting (checked first)
oscar config set OPENROUTER_API_KEY - # save a key (typed hidden) to credentials.env
oscar prompt-size # how many tokens the prompt and tools take
oscar logs -f # follow the gateway's log
oscar backup # a .tar.gz of your Oscar home
oscar update --check # is there a newer release?oscar run exits 0 when the task finished, 1 on an error, 2 when a call
needed an approval nobody could give, and 130 when interrupted; see
the command reference for
--format stream-json and --usage-file.
Several setups side by side
Profiles keep separate settings, keys, memory and gateways:
oscar profile create work
oscar -p work setup
oscar profile alias work # then just: oscar-work
oscar profile use work # or make it what plain `oscar` usesSee Operations.
Next steps
- Keep it updated and backed up: Operations.
- Run Oscar in a Matrix room: Matrix gateway.
- Teach it your procedures: Skills, learning and memory.
- Add your own tools: Lua tools.