man oscar The manual Start here

Approvals and the sandbox

Host vs workspace mode, approval tiers and modes, smart approvals, allow and deny rules, the approval timeout, unattended runs.

MANUAL / START HERE 4 / 29

Two separate things protect the user's machine:

  • Approval decides whether a command runs.
  • The sandbox decides what a command can touch once it runs.

Sandbox modes (sandbox in config.toml, --sandbox, OSCAR_SANDBOX)

Four modes: host (default), workspace, docker, ssh.

host (default) — commands run on the machine as the user running Oscar, starting in the workspace, with network; file tools accept any path. You can edit system files, run ansible, ssh, git push. Guards that stay on:

  • the approval gate (below);
  • Oscar's own folder ($OSCAR_HOME) is refused to file tools and to commands that name it, except the two skill folders (skills/, skills-bundled/), which can be read and whose scripts run in place, as a skill expects; file tools never write there, and a path with .. or a symlink out of them is refused;
  • secrets (variables ending in _API_KEY, _TOKEN, _SECRET, _PASSWORD, _PASSPHRASE) are removed from the environment commands see, except those passed on purpose (below);
  • credential files (SSH keys, cloud and cluster credentials, sudo rules) are never written, and not read through the file tools (below);
  • every command is logged to $OSCAR_HOME/audit/commands.jsonl. Prefer the workspace; say what you are about to touch outside it.

workspace — bash runs inside a private Linux namespace: only /usr, /bin, /lib* (read-only), a private /tmp and the workspace (at /work) exist, and there is no network. .git is read-only. File tools accept only workspace paths. If the kernel cannot provide the sandbox, bash refuses to run. web_fetch is the only network access (public http(s), no private addresses) — in every mode it is the tool for reading web pages. The sandbox's root is built in a scratch folder, oscar-jail-<pid> in the temp folder (TMPDIR), holding only empty mount points: it is removed when Oscar exits (a normal end, an early exit, a gateway stopped with SIGTERM). One left by a process that was killed is removed at a later start, once it is an hour old and its process is gone (only folders of that name, owned by you, in the temp folder).

What the workspace sandbox needs

The sandbox is built with unshare (util-linux), chroot and /usr/sbin/capsh (libcap2-bin), inside a user namespace that an ordinary user may create; it does not use bubblewrap or Docker, so installing those changes nothing. oscar doctor checks it on every run: the confinement line says whether it can start, and when it cannot, reason: says why and what fixes it (the same text bash answers with in the workspace sandbox). Host mode does not need it.

  • Ubuntu 23.10 and later (24.04 included) keep unprivileged programs from using user namespaces through AppArmor (kernel.apparmor_restrict_unprivileged_userns = 1), so for any user but root the sandbox cannot start. Root is not restricted. To allow them for every program on the machine:
    shell
    sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
    echo 'kernel.apparmor_restrict_unprivileged_userns = 0' | sudo tee /etc/sysctl.d/60-userns.conf
    This turns off a hardening Ubuntu added on purpose (it narrows what an attacker who already runs code as a user can reach in the kernel); decide for the machine, not for Oscar. The alternatives keep it on: host mode with the approval gate, sandbox = "docker", or Oscar itself in a container (Oscar in Docker).
  • Older Debian kernels switch unprivileged user namespaces off with kernel.unprivileged_userns_clone = 0 (sudo sysctl -w kernel.unprivileged_userns_clone=1); some hardened systems set user.max_user_namespaces = 0.
  • Inside a container user namespaces are usually forbidden; the container is the boundary there, so use host mode.

Docker

docker — bash runs in a long-lived container made for the workspace, through the docker program (install Docker; Oscar links no Docker client, and OSCAR_DOCKER_PROGRAM=podman uses Podman instead). If docker is missing or the daemon does not answer, commands are refused — never run on the host instead.

  • One container per workspace and Oscar process, made on the first command (the image is pulled then), reused for every command after, and removed when Oscar exits or after docker_idle_minutes (default 30) without a command and with no background process in it; the next command makes a new one. A container left behind by an Oscar process that died is removed by oscar docker clean (--all: every Oscar container). The chat gateways keep theirs while they run and the idle timer removes it.
  • What commands reach: the workspace, mounted at the same path (the starting directory), a private /tmp (also the home folder), the image's own files, and docker_mounts you add (host:container[:ro], comma-separated). Nothing else on this machine. Oscar's own home is never mounted (a mount that is, holds or is inside it is refused), nor the Docker socket. Every .git in the workspace is mounted read-only, as in the workspace sandbox; a .git a command creates is disarmed afterwards and the call fails; a .git that appears between commands makes Oscar recreate the container so it is read-only too.
  • What file tools reach: the workspace (the same files the container sees), as in the workspace sandbox; extra mounts are for commands only.
  • Hardening: every capability dropped except CHOWN, DAC_OVERRIDE and FOWNER (plus SETUID/SETGID as root), no-new-privileges, at most 1024 processes, docker_cpus (default 2) and docker_memory (default 4g; "0" for no limit), network on (docker_network = "off": none).
  • Who runs: you (--user uid:gid, so files written in the workspace stay yours; packages cannot be installed), or docker_user = "root" inside the container. Packages and files outside the workspace last until the container is removed. Default image debian:stable-slim (docker_image).
  • Background processes run in the container; stopping one stops it there.
  • Like the workspace sandbox, a workspace that is or contains your home directory needs --allow-home-workspace.

SSH

ssh — commands and file tools work on another machine, through the OpenSSH client (ssh; OSCAR_SSH_PROGRAM names another). Settings: ssh_host (a host name or an alias from ~/.ssh/config), ssh_user, ssh_port, ssh_key, ssh_workspace (the remote folder commands start in and relative paths are taken from; default: the login folder).

  • One connection: every call goes through a ControlMaster socket in Oscar's runtime folder ($XDG_RUNTIME_DIR/oscar, else $OSCAR_HOME/run, mode 0700), kept ten minutes after the last call and closed when Oscar exits. BatchMode=yes: keys or an agent, never a password prompt.
  • Host keys stay checked: ssh_host_key_check = "accept-new" (default: a new host is remembered, a changed key is refused) or "yes" (only hosts already in known_hosts). Turning checking off is not possible.
  • File tools on the remote host: read_file, write_file, edit_file, patch and search_files act on the remote files through the same connection (cat to read, a temporary file and mv to write — an existing file keeps its mode — stat/cksum for the stale-file guard, rg when installed there, else grep/find, to search; .gitignore is honoured only with rg), with the same caps as locally. Any remote path the remote user can reach is reachable; .git is still never written by file tools. Large outputs are saved in the remote workspace.
  • What stays local: automatic checkpoints and /rollback (they copy local files, so they are off over SSH), diagnostics from language servers, workspace context files (AGENTS.md …) and @path references, which are read from the folder Oscar started in. The commands Oscar itself runs on this machine are only ssh.
  • Each command runs in its own session on the remote host, so a timeout or process_manage kill stops everything it started there; background processes run there too, their input and output carried by their own ssh.

In every mode the approval gate, the audit log ($OSCAR_HOME/audit/commands.jsonl, with docker_command / ssh_command entries), redaction of what the model sees and the removal of secrets from the environment work the same way: docker and ssh never get your API keys, so nothing can pass them into a container or forward them to a host. oscar doctor shows the backend and whether it answers, and the model is told where its commands run.

Credential files and protected paths

Some files give whoever writes them a way into your machine or accounts: SSH keys and authorized_keys (~/.ssh/; its config and known_hosts are ordinary files), ~/.aws/, ~/.kube/config, ~/.netrc, ~/.gnupg/ and /etc/sudoers (with /etc/sudoers.d/) — in your home folder and any other (/root, /home/<user>). In every mode and approval mode, whatever the rules:

  • No tool writes them. write_file, edit_file and patch refuse them by their real path (a link leading there is refused too), before anyone is asked; bash refuses a command that writes one by name — a redirect (>> ~/.ssh/authorized_keys), tee, cp/mv/install/rsync/scp/ln to one, dd of=, rm, chmod, mkdir, sed -i, ssh-keygen -f, also behind sudo, env or sh -c — and a command run in one of those folders (workdir). That shell check reads the command's words; it is a guard, not a sandbox.
  • The file tools do not read them, nor a project's environment files (.env, .env.<name>, .envrc; templates like .env.example stay readable): read_file and @ references refuse, search_files skips their contents, @diff and @git:N leave .env files out. .env files can still be written — Oscar can set one up for you without reading the values back.

protected_paths adds more paths (absolute or ~/…, comma-separated): no tool reads or writes anything under them. allow_credential_paths = "on" turns the built-in list off (never your protected_paths, never Oscar's own folder or .git): dangerous — a prompt injection could then plant an SSH key or read your cloud credentials; use it only for a run you watch.

Secret stores: reading keys always asks

Some files are nothing but keys. A shell command that reads one is dangerous (confirm tier): a human answers every time, in every approval mode — auto and smart included — whatever your allow rules, it is never remembered for the session, and with nobody to ask it is refused. A key read into the conversation is a key the model, the provider and the transcript have seen, and it takes one line (echo ${KEY:0:4}) to start leaking it. The prompt names the file and what it holds — reads a credential file: ~/.codex/auth.json (another agent's keys) — never its contents.

The secret stores, in your home folder and any other (/root, /home/<user>, /Users/<user>):

  • Other agents' key files: the .env, auth.json and credential files in another agent's home folder (for the agents Oscar can import from), ~/.claude/.credentials.json and ~/.claude.json, ~/.codex/auth.json, OpenClaw's (~/.openclaw/credentials/, .env, openclaw.json, auth-profiles.json), and the GitHub CLI's ~/.config/gh/hosts.yml.
  • Your own credentials: SSH private keys (every file in ~/.ssh but public keys, client configuration — config, config.d/, *.conf — known_hosts and authorized_keys), ~/.aws/credentials, ~/.netrc, ~/.docker/config.json, ~/.kube/config, ~/.git-credentials, ~/.pgpass, ~/.npmrc, ~/.pypirc, GnuPG private keys (~/.gnupg/private-keys-v1.d/, secring.gpg).
  • Oscar's own keys, in any of its homes (OSCAR_HOME, ~/.oscar and its profiles): credentials.env, matrix.env and every other *.env, *-secret files, dashboard.token, auth/, mcp/tokens/, vault/. These are not asked about but refused, in every mode: Oscar's home is out of reach for tools (in host mode a command naming it does not run either).
  • .env files outside the workspace (.env, .env.<name>, .envrc; templates like .env.example excepted). Inside the workspace they are your project's, and reading one through the shell is judged as before.
  • Your protected_paths.

What counts as reading: any program that names such a file (cat, less, head, grep, awk, sed, cut, strings, xxd, base64, jq, cp, scp, rsync, tar, zip, source or ., a path in python -c, node -e or ssh host '…' code …); input redirection (< file, $(< file)); a folder that holds one, given to a program that copies, archives or searches folders (cp -r ~/.ssh …, tar czf x.tgz ~, grep -r KEY ~, rg KEY ~/.codex); and names handed to a reader by xargs or find -exec. The path is found however it is written — ~, $HOME, $OSCAR_HOME, /root/…, a variable set earlier in the command, after cd, a glob that could match (~/.ssh/*, ~/.codex/*), braces — and wherever it sits: inside sh -c, $( … ), backticks or eval, behind env, sudo, timeout or nice. Sending one away (curl -d @file, -F f=@file, -T, wget --post-file) is refused outright, like any credential file.

What does not count: listing names or looking at metadata (ls, stat, test -f, du, find without -exec, echo of the path) — ls ~/.codex is judged as before, since names are not keys; using a key without showing it (ssh -i ~/.ssh/id_ed25519, ssh-add, ssh-keygen -y); public keys, known_hosts and config. The file tools (read_file, search_files, @ references) do not read secret stores at all, as with the credential files above. allow_credential_paths = "on" turns this list off too (never your protected_paths). Like the rest of the classifier, this reads the command's words: a script that opens a key file by a path it computes is not seen, which is why the workspace sandbox or a container is what keeps a key out of reach.

To give Oscar a key, use oscar setup (or write credentials.env yourself). The model is told never to print a secret or any part of one, and not to take keys from other programs' files.

What commands may carry

Two checks read what a command carries, beyond which programs it runs, and refuse it outright (deny tier: no mode, rule or person lets it run):

  • Invisible or direction-changing characters — zero-width spaces and joiners, right-to-left overrides and isolates, tag characters, stray variation selectors: what you would approve is not what would run. Emoji sequences (👩‍💻, ℹ️) are fine. Input sent to background processes is checked the same way.
  • Secrets sent away by curl or wget: a key shape (sk-…, ghp_…, AKIA…, a private key …) or a secret variable ($OPENAI_API_KEY, ${DB_PASSWORD}) in a request body (-d, --data*, -F, --json, --post-data …) or in the URL, or a credential or .env file uploaded (-F file=@.env, -T ~/.ssh/id_rsa, --post-file). An Authorization header is ordinary API use and is not refused.

Persistence and poisoning

A web page, a search result, an email or someone else's chat message can carry instructions meant for the model. Within one conversation the approval gate and the sandbox limit what they can do; the risk that outlives it is that they get kept — in memory or a skill — and steer every later session. What Oscar keeps is screened on the way in:

  • Built-in memory (memory tool, MEMORY.md, USER.md): an entry that looks like a credential, has invisible or direction-changing characters, steers the model, deceives you, sends data away, runs remote code or is obfuscated is refused, and entries are at most 2,000 characters. memory_write_approval = "ask" makes every change wait for you (/memory pending).
  • A memory provider's write tools (hindsight_retain, mem0_add, honcho_conclude, supermemory_store, mnemosyne_remember … see connectors): the same content screen (not its size limit), before anything is sent. Everything sent to a provider is redacted and loses invisible characters; recalled memories lose them too and come fenced as recalled data.
  • Skills: every write (the model's skill_manage, the background review, /learn, accepting a proposal, installs) goes through the skill scan; a locked skill is never changed; every change is in the ledger (oscar skills rollback).
  • The background reviews after untrusted content: when a conversation read web pages, search results, browser pages, an untrusted MCP server, mail or other people's messages since its last review, what the reviews would change waits for you — the skill as a proposal (!accept, /accept), memory in memory pending — with a notice saying why (review_untrusted = "propose", the default; see skills and learning for the full list and how to change it).

Not scanned by Oscar: what a memory provider stores or extracts on its own side from the exchanges it is sent (its own model reading the conversation), and files you or a command write into the workspace (a project's instruction files are checked when they are read: see persona and project files). Not counted as untrusted content by the reviews: session_search results, configured source_query sources, trusted MCP servers and recalled memories. /learn from a web address you name is your choice of source: it is written like a file, and the ledger entry names the address.

Secret variables for skills (terminal_env_passthrough)

Commands never inherit Oscar's secrets. Two things pass some back to one conversation's commands (the workspace sandbox and the host; containers and SSH hosts get none):

  • A loaded skill's variables: while a skill that declares requires.env (or required_environment_variables) is loaded in a conversation — by skill_view or a /skill command — those variables are passed to the commands that conversation runs, with their values from the environment or credentials.env. A skill never gets Oscar's own secrets this way: provider keys (OPENAI_API_KEY, ANTHROPIC_API_KEY …), OSCAR_*, the chat gateways' MATRIX_*, TELEGRAM_*, DISCORD_*, the vault's BW_SESSION and OP_SESSION_*.
  • terminal_env_passthrough: names you list (comma-separated) are always passed — Oscar's own secrets too, if you name them.

The trade-off: whatever runs in those commands can read a passed variable and send it anywhere the command can reach (the shell check above refuses the obvious curl -d "$TOKEN", not every way out). Install skills you trust, and keep the list short.

Policy tiers for shell commands

Tier Examples What happens
allow ls, cat, grep, head runs
ask writing files, git commit, cargo build, unknown programs, pipelines asks (auto mode approves, smart mode lets the reviewer decide first, an allow rule runs it)
confirm rm -r, git reset --hard, git clean -f, force push, chmod -R, find -delete, dd of=, truncate -s, reading a secret store (cat ~/.codex/auth.json, grep KEY /srv/app/.env) always asks a human, even in auto or smart mode and with an allow rule; refused when nobody can answer
deny rm -rf /, writing to block devices, mkfs, shred, writing a credential file, invisible characters, a secret sent by curl/wget refused in every mode, whatever the rules

A command's verdict includes what runs inside it: sh -c '…', $( … ), backticks, <( … ) and eval are judged by their contents, so a dangerous or refused command in one makes the whole line dangerous or refused.

Other tools: write_file, edit_file, patch, skill_manage, web_fetch and Lua tools that write ask; reading (read_file, search_files, skills_list) does not. vision_analyze asks for an http(s) image (the request goes wherever the model points, and the address itself can carry data away), like web_fetch; a local file or a data: URL runs freely. Restoring a checkpoint (/rollback <n>, !rollback <n>, oscar rollback <n>) is a write and asks the same way. Calls under another agent's tool names (terminal, delegate_task, web_extract, cronjob_manage, mcp__<server>__<tool>) are judged as the Oscar tool they name.

Oscar's own settings

The agent cannot loosen Oscar's safety settings for itself. Writing Oscar's home folder is refused (above), and Oscar's own command line is held to the same line in two layers:

  • The classifier puts every oscar command that changes the security posture in the confirm tier — a human answers every time, in every mode, and with nobody to ask it is refused: oscar config set|unset of anything but display settings (theme, model, personality, timestamps, the *_typing/*_progress switches …) and oscar config edit; oscar approvals add|remove|suggest; oscar mcp add|enable|login; oscar profile install|update|use|import; oscar hooks allow; oscar plugins install|enable|update; oscar skills install|update|tap|trust; oscar auth (but status); oscar dashboard user …; oscar gateway install; oscar pairing approve; oscar telegram|discord owner; oscar proposals accept; oscar setup; oscar restore; oscar import --apply. It finds them however they are written: a path to the binary, behind env, sudo, nohup, command, inside sh -c, $( … ), backticks, eval or a quoted command string, after global flags (-p work), and a program the shell computes ($(which oscar) config set …). A command that mentions OSCAR_TOOL_SHELL is confirm-tier too.
  • The binary: every shell a tool starts (the host, the workspace sandbox, a container) has OSCAR_TOOL_SHELL=1, and there the same subcommands refuse to run — so a call the classifier did not catch (a script that runs oscar config set …) still fails. There is no "type yes" way past it, since a tool can get a terminal of its own and type the answer: such a change is made from your own terminal, even when you approved the command in a chat. (If a shell of your own ever carries the variable, unset OSCAR_TOOL_SHELL there.)

Neither layer is a sandbox: with sandbox = "host" and auto approvals the agent runs code as you, and the workspace sandbox or a container is what keeps it away from Oscar's home.

Approval modes

  • auto (default): ask-tier calls (writes, most commands, web and MCP calls, builds) run without asking, each after an audit line in $OSCAR_HOME/audit/approvals.jsonl. Dangerous (confirm-tier) commands still ask a human, and are refused when nobody can answer; deny-tier commands stay refused.
  • ask: ask the human before every call that needs approval; with no terminal, refuse.
  • smart: a cheap model (the reviewer) judges each ask-tier call first (see below); what it neither approves nor refuses is asked as in ask.
  • never: refuse everything that needs approval.

Two other names are accepted wherever a mode is read (approve in config.toml, --approve, OSCAR_APPROVE, /approvals, !approvals): manual is ask, and off is auto — never more than auto, so dangerous commands still ask a person even with approvals "off". (unattended_approve keeps its own words: there off is never.)

oscar setup offers the choice, with auto selected; a mode already in config.toml is kept. Before this default, it was ask: set approve = "ask" to keep being asked about everything.

Set it with approve = "smart" in config.toml, OSCAR_APPROVE=smart or --approve smart. The mode applies to every surface with a person: the terminal chats, oscar run, the Matrix, Telegram and Discord gateways and editors over ACP (asked in the editor). Surfaces with nobody to ask follow unattended_approve instead (below). Hooks can refuse calls the gate allowed, never allow what it refuses. In a gateway, auto mode means only dangerous (confirm-tier) commands are asked in the room; restart the gateway after changing it.

send_message asks before posting into any chat other than the one the conversation is in, and "allow for this session" covers that one chat; cronjob asks before creating, changing, running or removing a job.

Smart approvals

With approve = "smart", an ask-tier call goes to the reviewer before a person sees it. The reviewer gets the exact command or arguments, the tool, the workspace and what the user asked this turn (a helper's calls are judged against the user's request, not the helper's instructions), all with secrets redacted, and answers one of:

  • approve: the call runs, and approvals.jsonl gets a smart_approved line naming the reviewer (provider:model) and its reason;
  • deny: the call is refused, and the model is told the reviewer's reason (smart_denied in the audit log);
  • ask: a person is asked, exactly as in ask mode.

A reviewer that fails, times out (45 s) or answers anything unclear counts as "ask". Dangerous (confirm-tier) commands never go to the reviewer, nor does filling or saving a login (browser_vault): a person always decides them. Deny-tier commands are refused before anyone is asked. The terminal shows each decision as an [approve:smart] line.

The reviewer is approval_model (config key, or OSCAR_APPROVAL_MODEL) on the same provider and key as the main model, without the fallback chain; unset, the provider's cheap model where Oscar knows one, else the main model. oscar doctor names it. What the reviewer is shown is data, and it is told so, but it is still a model reading text the agent chose: keep smart for work where an occasional wrong "approve" of an ask-tier command is acceptable, and use rules for what must never run.

Allow and deny rules

Standing rules in config.toml:

toml
allow = ["git status", "cargo test *", "web_fetch", "mcp_github_*"]
deny  = ["git push", "curl *"]

A pattern with a space is a shell command pattern, matched word by word from the start of the command: git status covers git status --short but not git statusx or git -c x status; a word may contain *, a lone * stands for one word and a trailing * for whatever follows (make * covers plain make too). A single word is a tool name, * allowed (mcp_github_*). Patterns are plain words: quotes, $, ;, |, &, redirects and parentheses are refused.

  • Deny rules beat everything: a call that matches one is refused, whatever its tier, mode or allow rules ("matches your deny rule …"). For commands they match the words anywhere, including inside quotes, sh -c strings, $(…) and after sudo or env, so they can refuse more than you expect, never less. They also apply to input sent to background processes.
  • Allow rules let an ask-tier call run without asking, in every mode and on every surface (also never and unattended runs). They never apply to confirm-tier (dangerous) commands, and nothing turns a deny-tier refusal into a run. A compound command runs only when every part of it is covered (each program by a rule or by being read-only, output only to /dev/null); a command an allow rule cannot read completely ($, backticks, <(…), eval) still asks. bash, process_manage and browser_vault cannot be allowed by name; * alone is refused (use auto mode for that).
  • Tool names from other agents mean Oscar's tool: deny = ["terminal"] refuses bash, allow = ["web_extract"] allows web_fetch, mcp__github__* matches mcp_github_*.

Manage them with oscar approvals list, oscar approvals add "cargo test *" (--deny for the deny list) and oscar approvals remove "…", or edit config.toml. Rules added anywhere apply at once to running chats and gateways. oscar approvals suggest reads the audit log and proposes allow rules for commands and tools approved often (by you, auto mode or the reviewer; three times by default, --min N), never for dangerous ones; you pick which to add (on a terminal, or with --add 1,3). oscar doctor counts the rules and reports patterns it could not use.

sudo

In host mode a command may use sudo. The approval gate decides on the command as written, like any other (sudo keeps its tier); then:

  • every sudo the shell runs as a command becomes sudo -n, so it never asks on the terminal (where it would fight the full-screen chat) and never reads the command's input;
  • when sudo is set up not to ask (NOPASSWD), that is all;
  • when it needs your password, the terminal chats (oscar chat, the line chat) ask for it with a hidden prompt. It is written to the command's standard input only, read there by a short preamble that hands it to sudo -S -v through a pipe, and the command's own sudo -n calls use that sign-in (dropped again when the command ends). It never appears in a command line, the environment, a file, a log, the audit log, the session or the model's context, and it is masked if it ever shows in output;
  • it is kept in memory for the chat's session (sudo_password_cache = session, the default) or asked for every command (never); a password sudo refuses is forgotten and asked again;
  • SUDO_PASSWORD in credentials.env (or the environment), if you choose to put it there, is used without asking — in the terminal chats only, where a person is present;
  • chat gateways, scheduled jobs, oscar run, oscar batch, API runs and oscar mcp serve never ask and never use a password: such a command is refused with a note saying so. A pty: true command that needs the password is refused too (the terminal would show it).

sudo_unattended = "on" (OSCAR_SUDO_UNATTENDED, off by default) lets those unattended runs use SUDO_PASSWORD. Warning: sudo is an ask-tier command, and with approvals on auto (the default) or unattended_approve = "auto" nobody answers that question: a gateway message, a scheduled job or a webhook could then run commands as root after only the automatic approval check. Turn it on only for a machine and a set of chats you fully trust.

A sudo inside quotes or a subshell is left as written and may not get the sign-in; oscar doctor says where a password would come from.

Answers

Allow once; allow for this session (the exact shell command, or the whole tool for other tools, until the conversation changes — never for confirm-tier commands; the prompt says which); allow always (saves an allow rule, shown in the prompt before you choose: the command with its subcommand, such as cargo test, or the exact command, or the tool's name; never offered for dangerous commands, compound or wrapped commands, input to processes, the vault, send_message, cronjob or the file-writing tools write_file, edit_file and patch, where a rule would cover every file); deny. In the chat gateways !deny <reason> refuses and passes the reason (or what to do instead) to the model. Line chat and oscar run: y / s / a / n; after a the exact rule is shown again and written only when you confirm with y (otherwise the call is allowed just this once). Full-screen chat: y / s / a / n in the approval box, which shows the rule before you choose. Matrix: ✅ / 🔁 / 📌 / ❌ pills or !approve, !approve session, !approve always, !deny. Telegram and Discord: buttons, or /approve (Telegram) / !approve (Discord) and the rest. In a chat, a plain message sent while an approval waits redirects the turn (with the default busy_input_mode) and refuses the approval; the approve commands never count as a redirect. Only users on the allowed list can answer.

No answer in time is a deny. approval_timeout (seconds, 5 to 86400; OSCAR_APPROVAL_TIMEOUT) sets how long the chats and the terminal wait. Unset, chat gateways wait five minutes and the terminal waits until you answer. In oscar run without the line chat, a prompt that timed out still takes the next line typed, so press Enter to go on.

Changing the mode in a conversation. /approvals [ask|auto|smart|never] [save] (!approvals in chats) switches this session's mode at once: the rules, the reviewer and the questions all follow it; save makes it the default in config.toml. /yolo [save] (!yolo in chats, for the gateway's admins, like !approvals) is the same as /approvals auto. It does not approve dangerous commands: those still ask a person (and are refused when nobody can answer), and refused commands stay refused; it says so every time.

Unattended runs

Scheduled jobs, the board worker, the API server and prompts sent through oscar mcp serve have nobody to ask, so unattended_approve (OSCAR_UNATTENDED_APPROVE) decides there:

  • never: calls that need approval are refused at once (the default);
  • auto: ask-tier calls run with an audit line;
  • smart: what the reviewer approves runs; what it refuses or leaves open is refused.

When unattended_approve is not set it is never — with one exception kept for configurations from before this setting existed: if approve = "auto", unattended runs are auto too (oscar doctor then says "auto (from approve = auto)"). Set unattended_approve = "never" to keep auto in the chats but refuse in unattended runs, or "auto"/"smart" to let unattended runs decide while the chats ask. Allow and deny rules apply as everywhere. Confirm-tier (dangerous) commands are always refused in an unattended run, and what the policy or the reviewer refused is listed in a job's result (a call a deny rule refused is reported to the model, like any refusal). Nothing waits for an answer that cannot come. oscar doctor shows the policy and where it came from.