man oscar The manual Start here

Configuration

config.toml, keys, environment variables, precedence.

MANUAL / START HERE 2 / 29

Files in $OSCAR_HOME

config.toml (no secrets):

toml
provider  = "opencode-go"
model     = "deepseek-v4.1-flash"
base_url  = ""                      # optional override
workspace = "/path/to/project"      # empty: the directory you start oscar in
approve   = "auto"                  # auto | ask | smart | never; manual = ask, off = auto (dangerous commands always ask)
sandbox   = "host"                  # host | workspace | docker | ssh
# Approvals (see approvals-and-sandbox.md):
# allow = ["git status", "cargo test *", "web_fetch"]   # run without asking (never dangerous ones)
# deny = ["git push", "mcp_github_delete_*"]            # always refused
# approval_model = "glm-4.5-flash"  # the reviewer for approve = "smart" (provider:model works); default aux_model, then the provider's cheap model
# approval_timeout = "300"          # seconds the chats and the terminal wait for an answer
# unattended_approve = "never"      # never | auto | smart: cron jobs, board worker, API server, webhooks
# Helpers (`task`, see tools.md):
# helper_model = "cheap-model"      # helpers' default model (helper_provider for another provider)
# helper_provider = "openrouter"
# helper_model_map = "review=cheap-model, big-model=openrouter:small-model"   # by kind or main model
# helper_models = "cheap-model, openrouter:small-model"   # what a call may name with `model`
# helper_worktree = "off"           # auto: helpers changing code work in their own git worktree
# helper_worktree_dir = ".oscar/worktrees"   # relative to the workspace, or absolute
# max_background_helpers = "4"      # helpers a chat conversation runs in the background at once (1-16)
# helper_timeout = "600"            # seconds a helper may run before it is stopped (partial work returned); unset: no limit
# helper_allowed_tools = "memory"   # tools helpers do not get (memory, clarify, send_message, cronjob) they may have after all
# Optional components (see connectors.md); only the ones you set:
# web_backend = "tavily"            # tavily | exa | parallel | firecrawl | brave | searxng | perplexity | duckduckgo | keyless
# web_keyless = "on"                # on | off: free keyless services (search tier, Edge voice)
# web_search_native = "off"         # on: the provider's own web search (Anthropic, openai-codex) instead of web_search
# web_fetch_allow_private = "off"   # on: web_fetch may read this machine and the local network (never link-local)
# web_fetch_render = "off"          # on: web_fetch with render: true loads the page in the browser first
# web_fetch_backend = "auto"        # auto | builtin | firecrawl: who reads pages (auto: Firecrawl when FIRECRAWL_API_URL or FIRECRAWL_API_KEY is set)
# video_analyze = "off"             # on: video_analyze (needs ffmpeg; see voice-and-images.md)
# video_frames = "8"                # frames video_analyze samples (1-16)
# video_max_mb = "200"              # largest video file
# video_max_seconds = "600"         # longest stretch looked at
# ffmpeg_path = "ffmpeg"            # where ffmpeg is (ffprobe beside it)
# x_search_model = "grok-4.5"       # the model x_search asks (only with XAI_API_KEY)
# browser = "auto"                  # auto | off | local | cdp | browserbase
# browser_dialogs = "ask"           # ask | accept | dismiss: JavaScript dialogs
# browser_profile = "temp"          # temp | real: a private copy of your own Chrome profile
# browser_profile_path = "~/.config/google-chrome"   # with real; looked for when unset
# browser_idle_timeout = "600"      # seconds before an unused browser session closes; 0: never
# Voice (see voice-and-images.md and chat-and-tui.md):
# tts_backend = "edge"              # unset: the free Edge voice; openai | elevenlabs | deepinfra | minimax | mistral | gemini | xai | piper | espeak | command | off
# tts_voice = "en-US-AriaNeural"
# tts_speed = "1.0"                 # 0.25-4
# stt_backend = "whisper-cpp"       # unset: a local whisper.cpp when installed; openai | groq | mistral | xai | elevenlabs | deepinfra | command | path | off
# voice_mode = "on"                 # off: Ctrl+B does not record in the full-screen chat
# voice_reply = "off"               # off | voice | always: speak replies in the full-screen chat
# voice_hands_free = "off"          # on: a recording ends when you stop talking, and is sent
# voice_continuous = "off"          # on: listen again after each spoken reply (hands-free)
# voice_barge_in = "on"             # off: spoken replies play to the end
# voice_silence_threshold = "0.02"  # loudness (0-1) that counts as speech
# voice_silence_seconds = "1.5"     # quiet after speech that ends a recording
# auto_checkpoints = "on"           # on | off: save files before tools change them
# checkpoint_keep = "50"            # automatic checkpoints kept
# memory_provider = "local"         # local (free, on this machine) | hindsight | mem0 | openviking | memori | …
# memory_mirror = "on"              # off: the memory tool's changes stay out of the provider
# local_memory_model = "cheap-model"   # extracts facts for memory_provider = "local" (default compression_model)
# local_memory_extract = "on"       # off: notes only, no model call
# Staying up when the provider fails (see providers-and-models.md):
# fallback = "openrouter:moonshotai/kimi-k3, anthropic:claude-sonnet-5"
# provider_retries = "3"            # 0-5 retries after a rate limit or server error
# pool_strategy = "fill_first"      # several keys for one provider: fill_first | round_robin | least_used
# auto_recovery_cycles = "5"        # 0-10 more attempts (15 s, 30 s, then a minute apart) once those are spent
# request_timeout = "120"           # seconds for a reply to start and between its bytes (local servers: 1800)
# stream_idle_timeout = "180"       # seconds a stream may send only keep-alives (local servers: 900)
# ca_bundle = "/etc/ssl/corp-ca.pem"   # extra CA certificates for every HTTPS connection (adds trust; checks stay on)
# image_backend = "openai"          # openai | provider | fal: turns on image_generate
# Scheduled jobs (see scheduling.md) and the board (kanban.md):
# timezone = "Europe/Berlin"        # IANA name; default: the system's
# cron = "on"                       # off: the gateway runs no jobs
# cron_max_jobs = "50"
# cron_min_interval = "1m"          # shortest gap between two runs of a job
# cron_timeout = "10m"              # longest run
# cron_parallel = "1"               # runs at the same time, 1-4
# cron_model = "openrouter:qwen/qwen3"   # jobs' model unless a job names its own (default: the main model)
# cron_wrap = "on"                  # off: results without the header and footer
# cron_retry_unreachable = "on"     # off: no re-runs after 5, 15, 30 min when the provider was unreachable
# telegram_home_channel = "-1001234567890"   # where `deliver: telegram` goes
# kanban_worker = "off"             # on: the gateway works through cards assigned to Oscar
# kanban_notify = "telegram:5"      # chats told when cards finish, block or fail (every board)
# kanban_notify_wake = "off"        # on: and Oscar takes a turn there about it
# Chat gateways (see chat-gateways.md):
# chat_footer = "off"               # on: replies end with model · tokens · time · cost (`footer` per chat)
# context_notices = "on"            # off: no notice when a conversation nears compaction, or after it
# deliver_named_files = "on"        # off: a path standing alone in a reply is not sent as a file
# telegram_observe_groups = "off"   # on: recent group messages kept in memory as context for a mention
# telegram_observe_messages = "30"  # how many per chat
# telegram_mode = "polling"         # webhook: Telegram posts to telegram_webhook_url (TLS by your proxy)
# telegram_webhook_url = "https://bot.example.org/telegram"
# telegram_webhook_listen = "127.0.0.1:8443"
# matrix_auto_thread = "off"        # on: a mention at the top of a group room starts a thread on it
# matrix_no_thread_rooms = "!ops:example.org"   # rooms answered in place anyway
# Where commands run (see approvals-and-sandbox.md):
# docker_image = "debian:stable-slim"   # sandbox = "docker"
# docker_network = "on"             # off: --network none
# docker_cpus = "2"                 # "0": no limit
# docker_memory = "4g"              # "0": no limit
# docker_user = "host"              # host (your uid:gid) | root (packages can be installed)
# docker_mounts = "/data:/data:ro"  # extra mounts, opt-in; never Oscar's home
# docker_idle_minutes = "30"        # remove the container after this long unused; 0: only at exit
# ssh_host = "build.example.org"    # sandbox = "ssh"
# ssh_user = "dev"
# ssh_port = "22"
# ssh_key = "~/.ssh/id_ed25519"
# ssh_workspace = "/srv/app"        # default: the remote login folder
# ssh_host_key_check = "accept-new" # accept-new | yes (never off)
# sudo_password_cache = "session"   # never: the terminal chats ask for the sudo password every time
# sudo_unattended = "off"           # on: gateways, jobs and other unattended runs use SUDO_PASSWORD too — they can act as root (see approvals-and-sandbox.md#sudo)
# Tools (see tools.md):
# tools = "-browser"                # every surface: names, groups, -name to turn off
# tools_matrix = "files, shell, web"  # one surface: cli tui matrix telegram discord api acp cron
# process_notify_wake = "on"        # background-process reports start a short turn (chats)
# lsp = "on"                        # diagnostics after edits from language servers
# lsp_wait_ms = "3000"
# lsp_python = "basedpyright-langserver --stdio"   # or "off"; also lsp_rust, lsp_typescript,
#                                   # lsp_go, lsp_c, lsp_lua, lsp_bash, lsp_zig
# stale_file_guard = "on"           # refuse writes to files changed since read
# tool_output_save = "on"           # save long tool outputs to .oscar/outputs
# tool_output_limit = "49152"       # bytes above which they are saved
# bash_auto_background_secs = "300" # a foreground command still running after this moves to the background (off by default)
# terminal_env_passthrough = "GITHUB_TOKEN, NPM_TOKEN"  # secret variables commands still get (loaded skills add theirs)
# What tools may touch (see approvals-and-sandbox.md):
# protected_paths = "~/secrets, /srv/vault"   # no tool reads or writes under these
# allow_credential_paths = "off"    # on: tools may touch ~/.ssh, ~/.aws, .env … — dangerous
# website_blocklist = "*.internal.example, admin.example.com, ~/blocked-sites.txt"
# Memory and skills (see skills-and-learning.md):
# memory_char_limit = "2200"        # MEMORY.md budget in characters
# user_char_limit = "1375"          # USER.md budget
# memory_enabled = "on"             # off: no MEMORY.md in the prompt or the tool
# user_profile_enabled = "on"       # off: the same for USER.md
# memory_write_approval = "off"     # ask: memory changes wait for /memory approve
# skill_review_apply = "direct"     # propose: background skill reviews and /learn write proposals instead of changing your skills at once
# review_untrusted = "propose"      # direct: also write what the reviews learned from conversations that read web or other untrusted content
# creation_nudge_interval = "10"    # tool-calling steps since the last skill review or skill_manage call before a skill review; 0: never
# review_memory_every = "10"        # user turns between memory reviews; 0: never
# review_skill_after = "10"         # older name of creation_nudge_interval (which wins when both are set)
# review_max_tokens = "3000"        # tokens of conversation one review reads at most
# review_model = "openrouter:small-model"   # the reviews' model (an alias works); default aux_model, then the provider's cheaper model
# review_notice = "brief"           # off | brief | verbose: what the chat is told
# skills_create_dir = "~/brain/skills"      # where new skills of yours go (default $OSCAR_HOME/skills)
# project_skills_override = "off"   # on: a trusted project's skill replaces yours of the same name there
# The curator (skill lifecycle; see skills-and-learning.md#the-curator):
# curator = "on"                    # off: it never runs by itself (`oscar curator run --now` still does)
# curator_interval_hours = "168"    # hours between runs
# curator_min_idle_hours = "2"      # hours idle before one
# curator_stale_after_days = "14"   # an unused agent skill is marked stale
# curator_archive_after_days = "30" # and archived (never deleted)
# curator_purge_after_days = "0"    # `oscar curator purge` deletes archived skills this old; 0: never

# The agent loop (see "Limits, caching, compression and reasoning" below):
# max_turns = "0"                   # model calls per turn; 0: no limit (the default in chats)
# helper_max_turns = "250"          # each helper's own budget (`task`)
# max_output_tokens = "64000"       # output cap per reply (default: the model's own limit)
# context_window = "200000"         # the model's window, when Oscar cannot know it
# prompt_caching = "on"             # on | off
# prompt_cache_ttl = "auto"         # auto (1h in chats, 5m for one-shot runs) | 1h | 5m
# cache_keep_warm = "off"           # off | minutes: keep Anthropic's cache warm while a terminal chat is idle
# compression = "on"                # on | off
# compression_threshold = "75%"     # share of the window that triggers a summary
# compression_model = "claude-haiku-4-5"  # the model that writes it: same provider, or provider:model / an alias
# reasoning_effort = "medium"       # none | minimal | low | medium | high | xhigh | max (unset: provider default)
# fast_mode = "off"                 # on: priority processing from the start where offered (/fast toggles it)
# text_verbosity = "low"            # low | medium | high: reply length, for models that take it (OpenAI GPT-5); unset: nothing sent
# show_reasoning = "on"             # on | off: the model's reasoning, dimmed (default: on in the
#                                   # full-screen chat, off in the line chat; never in chat gateways)
# parallel_tools = "8"              # read-only calls of one reply run at the same time, at most this many
# turn_watchdog = "600"             # seconds a model request may show no progress; 0: off
# idle_compact_after_seconds = "0"  # a session picked up after this long idle is compacted first; 0: off
# verify_on_stop = "off"            # on: code edited and nothing tested or built since? asked once to verify
# helper_stall_seconds = "900"      # a helper with no progress this long is stopped (partial work returned); 0: never
# coding_instructions = "auto"      # auto (code repositories) | on | off: coding guidance in the prompt
# coding_instructions_file = "~/coding.md"   # replaces the built-in guidance (absolute, ~/, or in OSCAR_HOME)
# ephemeral_system_prompt = "Answer briefly."   # sent with every request, never saved to a session
# personality = "concise"           # the tone new sessions start with (/personality changes it)
# clarify_timeout = "90"            # seconds a question waits for an answer; 0: until answered
# skills_auto_load = "deploy, house-style"   # skills loaded into every conversation
# skills_disabled = "old-notes"     # skills turned off: kept, but out of the index and never loaded

# Sessions (see "Sessions" below):
# session_titles = "on"             # on | off: a short title written after the first reply
# session_archive_after_days = "30" # archive sessions idle this long (unset: never)
# session_retention_days = "365"    # delete sessions idle this long (unset: never)

# Typing while Oscar works and standing goals (see chat-and-tui.md):
# busy_input_mode = "interrupt"     # interrupt (redirect the turn) | queue (next turn) | steer (join after the next tool result)
# editor_mode = "emacs"             # emacs | vim: how the chats' input box edits (vim: normal and insert modes)
# history_size = "5000"             # sent lines kept in $OSCAR_HOME/history (both chats); 0: none
# footer = "on"                     # off: the line under each turn shows tokens only (not time, files, commands)
# notify = "off"                    # off | bell | osc | both: signal a long turn's end or a waiting question while you look elsewhere
# notify_after = "30"               # seconds a turn must take before its end signals
# status_fields = "model, context, tokens, session"   # the full-screen status line's fields, in order (default: all)
# timestamps = "off"                # off | time | full: times beside messages in the full-screen chat
# theme = "auto"                    # a theme or skin, or auto: light or dark from the terminal's background
# inline_images = "auto"            # auto | off: images drawn in the full-screen chat's transcript
# exit_transcript = "5"             # exchanges printed to the scrollback when the full-screen chat closes; 0: none
# terminal_status = "auto"          # auto (in a Herdr terminal) | on | off: tell the terminal what Oscar is doing (OSC 7501)
# goal_max_turns = "20"             # turns Oscar may take on its own toward a /goal
# goal_max_minutes = "60"           # and for how long
# matrix_streaming = "on"           # on | off: post chat replies early and edit them as they are written
# telegram_streaming = "on"
# discord_streaming = "on"

# Chat gateways shared by several people (see chat-gateways.md):
# group_sessions = "per_user"       # per_user (a conversation per person in group rooms) | shared
# telegram_group_sessions = "shared"  # one platform: matrix_, telegram_, discord_group_sessions
# telegram_admins = "5, @anna"      # admin commands (default: the allowed users); also matrix_, discord_admins
# approvers = "5"                   # who may answer approvals (default: the admins); also <platform>_approvers
# pairing = "off"                   # on: strangers who write privately get a pairing code; also <platform>_pairing
# voice_replies = "off"             # off | voice (answer voice notes with voice) | always
# discord_slash_commands = "on"     # on (per server) | global | off
# webhook_listen = "8644"           # webhooks in `oscar gateway serve`: off (default), a port (127.0.0.1) or an address
# boot_prompt = "BOOT.md"           # run as an unattended turn when the gateway starts (hooks.md#the-boot-prompt)
# boot_deliver = "telegram"         # where its answer goes (default: the first home channel)

# Chat gateways (see chat-gateways.md; a <PLATFORM>_<NAME> variable sets one platform):
# max_concurrent_turns = "8"        # chats answered at once per platform (each chat one turn at a time)
# progress = "all"                  # off | new | all | verbose: tool activity in chats (telegram_progress default new)
# still_working_minutes = "3"       # "still working" on long turns (0: off)
# cleanup_progress = "off"          # on: remove the turn's activity messages after the reply
# tool_preview_length = "40"        # characters of a tool call's preview in the activity message (all, new; 0: 40)
# allow_silence = "groups"          # groups | on | off: where [SILENT] / NO_REPLY sends nothing
# long_reply_messages = "8"         # longer replies go as a reply-<id>.md file (0: never)
# busy_ack = "on"                   # ⚡/⏳/⏩ for messages sent during a turn
# bot_loop_max = "4"                # bot messages answered in a row in one room
# drain_timeout = "60"              # seconds a stop or restart lets running turns finish
# telegram_reactions = "off"        # the 👀/👍 marks (matrix_ and discord_reactions default on)
# matrix_allowed_rooms = "!team:example.org"         # group rooms answered in (also matrix_free_response_rooms)
# matrix_ignore_user_patterns = "@telegram_*:example.org"  # bridge ghosts never answered
# telegram_mention_patterns = "\boscar\b"           # wake words in groups (regular expressions)
# discord_auto_thread = "on"        # a thread per mention in a server channel
# discord_allowed_roles = "123456789012345678"       # members of these roles are allowed

# `oscar update` (see operations.md):
# update_channel = "stable"         # stable | beta (pre-releases too)
# update_source = "manifest"        # manifest (the signed latest.json) | forge (the old route)
# update_manifest = "https://oscar-agent.com/latest.json"      # signature: + .minisig
# update_releases = "https://gitlab.com/ArkHost/oscar-agent"   # the public repository (--tag)
# update_url = "https://forge.example.org/api/v1"              # forge only
# update_repo = "ArkHost/OscarAgent"                           # forge only

# Tools, models and skills:
# tool_search = "auto"              # auto | on | off: with many tools, send the core ones and tool_search
# tool_search_max_tools = "40"      # auto turns it on past this many tools …
# tool_search_max_chars = "40000"   # … or this many characters of tool definitions
# models_dev = "on"                 # off: built-in prices and limits only (see providers-and-models.md)
# openrouter_sort = "price"         # price | throughput | latency; also openrouter_only,
#                                   # openrouter_ignore, openrouter_order, openrouter_data_collection,
#                                   # openrouter_allow_fallbacks (see providers-and-models.md)
# skill_dirs = ["~/team-skills"]    # more skill folders, used once trusted (skills-and-learning.md)
# plugin_catalog = "https://plugins.example.org/index.json"   # for `oscar plugins search|browse|outdated`

# Hooks: your commands on events (see hooks.md). Tables go after the keys.
# [[hooks]]
# event = "before_tool"             # any event in hooks.md: turn_end, before_tool, pre_llm_call,
#                                   # transform_tool_result, approval_decided, message_received, job_end, …
# tools = ["bash"]
# command = "~/bin/oscar-guard.sh"

# Events sent to your own endpoint as signed JSON (see hooks.md#event-webhooks):
# [[event_webhooks]]
# url = "https://hooks.example.org/oscar"
# events = ["turn_end", "job_end"]  # leave out for every event
# secret_env = "OSCAR_EVENTS_SECRET"   # the HMAC secret itself goes in credentials.env
# retries = 3

# Settings handed to a skill when it is loaded (no secrets; see skills-and-learning.md):
# [skills.deploy]
# region = "eu-west-1"
# replicas = 3
# dry_run = true

# Skills loaded together with /bundle <name> (see skills-and-learning.md#bundles);
# also as $OSCAR_HOME/bundles/<name>.toml with the same keys:
# [bundles.ship]
# skills = ["code-review", "release-notes"]
# description = "Get a change ready to ship."
# instruction = "Review first, then write the notes."

# Settings of one chat room (see chat-gateways.md#settings-per-room); also
# [rooms."<platform>:default"] and [rooms.default]:
# [rooms."telegram:-1001234567890"]
# model = "glm-5.1"
# system_prompt = "Answer briefly."
# tools = "web, -bash"
# busy_input_mode = "queue"
# require_mention = false
# voice_replies = "voice"
# group_sessions = "shared"

# Quick commands of your own in the terminal chats (see chat-and-tui.md#quick-commands):
# [[quick_commands]]
# name = "gpu"                      # typed as /gpu
# type = "exec"                     # runs the command through the approval gate, no model turn
# command = "nvidia-smi --query-gpu=utilization.gpu --format=csv"
# description = "how busy the GPU is"

# Webhook triggers of `oscar gateway serve` (see chat-gateways.md#webhook-triggers):
# [[webhooks]]
# name = "github"
# signature = "github"              # github | gitlab | hmac (with header = "X-Signature")
# secret_env = "GITHUB_WEBHOOK_SECRET"   # the secret itself goes in credentials.env
# events = ["push"]
# prompt = "Summarise the push to {{repository.full_name}}: {{head_commit.message}}"
# deliver = "telegram:-1001234567890"
# approve = "never"                 # never | auto | smart (default: unattended_approve)

# Models (see providers-and-models.md): side tasks on any provider,
# aliases, named custom providers and per-model settings.
# aux_model = "openrouter:google/gemini-3-flash"   # the default for side tasks (not vision)
# title_model = "deepseek:deepseek-flash"          # session titles
# [model_aliases]
# fav = "openrouter:anthropic/claude-sonnet-5"
# [providers.mylab]
# api = "openai"                    # openai | anthropic | responses
# base_url = "http://127.0.0.1:8000/v1"
# key_env = "MYLAB_API_KEY"         # or key_cmd = ["pass", "show", "mylab"] (no shell)
# extra_headers = { "X-Team" = "research" }
# extra_body = { top_k = 20 }
# context_length = 65536
# max_output_tokens = 8192
# models = ["qwen3-coder"]
# streaming = true
# request_timeout = 300
# [models."openrouter:anthropic/claude-sonnet-5"]
# context_window = 200000
# max_output_tokens = 32000
# compression_threshold = "70%"
# reasoning_effort = "high"
# supports_vision = true
# prompt_cache_ttl = "1h"
# How a built-in provider is reached, over the settings for every provider:
# [provider_settings.openrouter]
# request_timeout = 300             # seconds for a reply to start (over request_timeout)
# connect_timeout = 10              # seconds to connect (default 30)
# streaming = false                 # whole replies (chat-completions APIs only)
# max_retries = 1                   # 0-5 (over provider_retries)

# Tone presets for /personality (see "Personalities" below); also
# $OSCAR_HOME/personalities/<name>.md:
# [personalities.pirate]
# text = "Talk like a friendly pirate, but keep technical answers exact."
# description = "arr"

# Mixture of agents (see providers-and-models.md): `-m moa:deep`
# [moa.deep]
# aggregator = "anthropic:claude-opus-4-6"
# references = ["openrouter:openai/gpt-5.1", "deepseek:deepseek-chat"]

Change it with oscar config set KEY VALUE (the value is checked, comments and the other lines stay), oscar config unset KEY, or oscar config edit; oscar config check lists unknown keys and bad values with their line numbers, and oscar config show prints everything with secrets masked. See Operations.

Every write Oscar makes keeps what you wrote: oscar config set/unset, oscar model set, /model --global and !model --global, /reasoning … save, oscar model alias, approval rules, the theme, skill settings, skills_disabled, oscar setup, oscar import and profile installs all change only the lines they must. Comments, blank lines, the order of keys and tables, spacing and quoting stay as they are; a changed value keeps its trailing # comment; the comment lines above a removed key stay in the file; new keys go after the last key of their table (top-level ones before the first table) and new tables after their siblings, or at the end. If a file cannot be edited this way (a key written twice), it is written fresh and the old one is kept as config.toml.bak.

Top-level values are quoted strings; a list setting (openrouter_only, skill_dirs, the chat allow-lists) may also be written as an array (["a", "b"]). A [skills.<name>] table takes strings, numbers, true/false and arrays of strings. A [bundles.<name>] table takes skills (an array), description and instruction (strings). A [rooms.*] table takes the room settings listed above (strings; require_mention is true/false), and [[webhooks]], [[event_webhooks]] and [[quick_commands]] tables the keys shown (a quick command's name is letters, digits, - and _; type is exec; a built-in command or a skill of the same name wins). [model_aliases] maps names to provider:model; a [providers.<name>] table takes the keys shown (inline tables { k = "v" } for extra_headers and extra_body, numbers for the limits, true/false for streaming); a [models."<provider>:<model>"] table takes context_window, max_output_tokens (numbers), compression_threshold, reasoning_effort, prompt_cache_ttl (strings) and supports_vision (true/false). A [provider_settings.<id>] table (a built-in provider's id or alias) takes request_timeout, connect_timeout, max_retries (numbers) and streaming (true/false); a custom provider keeps these in its own [providers.<name>] table. A [personalities.<name>] table takes text and description (strings). A [moa.<preset>] table takes aggregator (a string), references (an array of strings) and reference_max_tokens, reference_timeout (numbers). Unknown keys are errors. Tables go after the top-level keys; oscar config set and unset change top-level keys only (oscar model alias edits the aliases). credentials.env (mode 0600, written by oscar setup; add connector keys by hand):

text
OPENCODE_GO_API_KEY=...
OPENCODE_GO_API_KEY_2=...           # more keys for one provider: _2 … _16
TAVILY_API_KEY=...

Other files there: history is the input history both chats share (one sent line per entry, private, at most history_size entries, each kept once; lines that look like secrets — API keys, tokens, export X_TOKEN=…, --password … — and very long pastes are never written; see chat-and-tui); tmp/ holds the draft while you write a message in $EDITOR (removed afterwards). plugins/ holds plugins (each in its own folder with a plugin.toml; .state.json records which are enabled, with the permissions you accepted and your settings for each; .installed.json where installed ones came from; see Plugins), dashboard.token the dashboard's current access token and dashboard-users.json its users' names and Argon2id password hashes (both mode 0600; see The web dashboard), hooks-allowed.json the hashes of the hooks you allowed (mode 0600; see Hooks), boot.last when the boot prompt last ran, and cache/plugin-catalog.json the plugin catalogs last fetched. A plugin never changes Oscar's own settings: its [config] holds its own, set with oscar plugins config.

Several keys for one provider form a pool: requests move to the next key when one is rate-limited, out of quota or refused (see Providers and models).

A value may also name where the key is kept — op://vault/item/field (1Password), bw://item/field (Bitwarden), bws://<secret id> (Bitwarden Secrets Manager) or cmd:<command> — and is then read when Oscar starts and kept in memory only (see Providers and models, also for running the gateway as a service with such keys).

HTTPS and certificates

Every HTTPS connection Oscar makes (providers, web tools, chat platforms, MCP servers, updates, websockets) trusts:

  • the roots bundled in the binary (Mozilla's list);
  • the system's certificate store (on Linux the distribution's bundle, e.g. /etc/ssl/certs), so a company or local CA the machine trusts works;
  • the files named by SSL_CERT_FILE and SSL_CERT_DIR, when set;
  • ca_bundle (OSCAR_CA_BUNDLE): a PEM file of extra certificates; a relative path is read from Oscar's home;
  • a custom provider's own ca_bundle in its [providers.<name>] table, for that endpoint only (see providers and models).

This only adds trust: certificate checks are never turned off, and there is no setting that would. A bundle that cannot be read adds nothing (the other roots still apply). oscar doctor shows the sources (tls lines) and any problem; oscar config set ca_bundle /path/ca.pem checks the file first.

Precedence

flag (--provider, --model/-m, --base-url, --approve, --max-turns, --reasoning) > environment > config.toml > built-in default. The file's model and base URL apply only to the file's provider. There is no default provider: with nothing configured, Oscar asks you to run oscar setup. --ignore-user-config skips config.toml for one command: the built-in defaults apply, keys still come from the environment and credentials.env, and nothing writes config.toml while it is given. The settings that keep Oscar strict still apply — approve, the allow and deny rules, unattended_approve, approval_timeout, approval_model, sandbox and the docker_* and ssh_* settings — so the flag never loosens approvals or the sandbox.

Variables in config.toml

A value in config.toml may refer to a variable as ${NAME}:

toml
base_url = "https://${LLM_HOST}/v1"
model = "${TEAM_MODEL}"

When the file is read, each reference is filled in from the environment, then from credentials.env (a secret-manager reference there is not followed for this). A reference nothing resolves stays as written, and oscar config check warns about it with its line. Saving from Oscar (oscar model set, oscar setup, oscar config set of another key) keeps every unchanged reference as written, so its value never lands in the file. Write $${NAME} for a literal ${NAME}. References work in the top-level settings (not inside [[hooks]], [[webhooks]], [skills.*] or [rooms.*] tables). Keep secrets in credentials.env itself rather than pulling them into a value: config check warns when a reference expands to something shaped like a key.

Secrets are set from the command line with their UPPER_SNAKE name: oscar config set OPENROUTER_API_KEY - reads the key (hidden on a terminal) and writes it to credentials.env, mode 0600.

Environment variables

Variable Purpose
OSCAR_HOME, OSCAR_WORKSPACE data folder; workspace
OSCAR_PROFILE use profile NAME (~/.oscar/profiles/NAME); --home, --profile and OSCAR_HOME win over it (operations)
OSCAR_UPDATE_CHANNEL, OSCAR_UPDATE_SOURCE oscar update: channel (stable, beta) and source (manifest, the default, or forge, the old route) (config update_channel, update_source)
OSCAR_UPDATE_MANIFEST, OSCAR_UPDATE_RELEASES oscar update: the signed release manifest (default https://oscar-agent.com/latest.json) and the public repository with the release files (default https://gitlab.com/ArkHost/oscar-agent) (config update_manifest, update_releases)
OSCAR_UPDATE_URL, OSCAR_UPDATE_REPO oscar update with update_source = forge: the forge API and repository (config update_url, update_repo)
OSCAR_UPDATE_TOKEN forge route only: a token for a private repository, for oscar update and install.sh; sent only to the forge, never to the manifest or download hosts (environment or credentials.env)
OSCAR_LOG_MAX_BYTES size at which a log file under logs/ is rotated (default 10 MB; three old files are kept)
OSCAR_JOURNALCTL the program oscar logs gateway runs instead of journalctl (testing, other machines)
OSCAR_PROVIDER, OSCAR_MODEL provider and model
OSCAR_APPROVE approval mode: auto (default), ask, smart or never
OSCAR_APPROVAL_MODEL, OSCAR_APPROVAL_TIMEOUT, OSCAR_UNATTENDED_APPROVE the reviewer model for smart approvals, how long chats and the terminal wait for an answer (seconds), what runs with nobody to ask (config approval_model, approval_timeout, unattended_approve; see approvals and sandbox)
OSCAR_HELPER_PROVIDER, OSCAR_HELPER_MODEL, OSCAR_HELPER_MODEL_MAP, OSCAR_HELPER_MODELS where helpers (task) run: another provider, a default model, models by kind or main model, the models a call may name (config helper_*; see tools)
OSCAR_HELPER_WORKTREE, OSCAR_HELPER_WORKTREE_DIR auto: helpers changing code work in a git worktree of their own; where worktrees go (config helper_worktree, helper_worktree_dir)
OSCAR_SANDBOX host (default), workspace, docker or ssh
OSCAR_CA_BUNDLE, SSL_CERT_FILE, SSL_CERT_DIR extra CA certificates every HTTPS connection trusts besides the bundled roots and the system store (config ca_bundle; see HTTPS and certificates)
SUDO_PASSWORD, OSCAR_SUDO_PASSWORD_CACHE, OSCAR_SUDO_UNATTENDED the sudo password the terminal chats use without asking, if you choose to put it in credentials.env; whether they keep a typed one for the session (session, the default) or ask every time (never); on lets gateways, scheduled jobs and other unattended runs use SUDO_PASSWORD too — they can then act as root after the approval check (off by default) (config sudo_password_cache, sudo_unattended; see approvals and sandbox)
OSCAR_LOCK_DIR where gateways lock the bot tokens they use (default ~/.local/state/oscar/locks; see chat gateways)
OPENCODE_GO_API_KEY, OPENCODE_GO_BASE_URL OpenCode Go
OPENROUTER_API_KEY, OPENROUTER_BASE_URL OpenRouter
OPENAI_API_KEY, OPENAI_BASE_URL any OpenAI-compatible endpoint (setting these selects openai-compatible)
other providers' *_API_KEY and *_BASE_URL see the table in Providers and models
ANTHROPIC_API_KEY, ANTHROPIC_BASE_URL Anthropic
OSCAR_REVIEW=0 turn off the background skill reviewer
OSCAR_AUX_MODEL cheaper model for the reviewer
OSCAR_BUNDLED_SKILLS use another folder as the bundled skills
MATRIX_HOMESERVER, MATRIX_ACCESS_TOKEN Matrix account
MATRIX_ALLOWED_USERS comma-separated user ids allowed to talk to Oscar
MATRIX_ALLOW_ALL_USERS=true answer everyone (careful)
MATRIX_REQUIRE_MENTION=false answer every message in group rooms (default: only when mentioned; private chats never need it)
MATRIX_RECOVERY_KEY the account's recovery key (or passphrase): import an existing cross-signing identity (matrix)
MATRIX_ALLOWED_ROOMS, MATRIX_FREE_RESPONSE_ROOMS, MATRIX_IGNORE_USER_PATTERNS, MATRIX_MAX_MEDIA_MB group rooms and files (matrix)
MATRIX_E2EE=on|off serve encrypted rooms / never
MATRIX_E2EE_TRUST=cross-signed|any which devices to trust
MATRIX_CRYPTO_PASSPHRASE encrypt the Matrix key store at rest
MATRIX_PROGRESS, TELEGRAM_PROGRESS, DISCORD_PROGRESS off, new, all, verbose: how much tool activity a chat sees (config progress, matrix_progress …)
TELEGRAM_BOT_TOKEN, TELEGRAM_ALLOWED_USERS, TELEGRAM_* the Telegram bot (telegram)
DISCORD_BOT_TOKEN, DISCORD_ALLOWED_USERS, DISCORD_* the Discord bot (discord)
MATRIX_REACTIONS, TELEGRAM_REACTIONS, DISCORD_REACTIONS the 👀/✅ marks (default on; Telegram off)
MATRIX_TYPING, TELEGRAM_TYPING, DISCORD_TYPING false: no typing indicator in that platform
OSCAR_MAX_CONCURRENT_TURNS, OSCAR_PROGRESS, OSCAR_STILL_WORKING_MINUTES, OSCAR_CLEANUP_PROGRESS, OSCAR_ALLOW_SILENCE, OSCAR_LONG_REPLY_MESSAGES, OSCAR_BUSY_ACK, OSCAR_BOT_LOOP_MAX, OSCAR_DRAIN_TIMEOUT chat gateway behaviour, every platform (<PLATFORM>_<NAME> for one); see chat-gateways
OSCAR_MODEL_VISION, OSCAR_VISION_MODEL, OSCAR_STT_*, OSCAR_TTS_*, GROQ_API_KEY, ELEVENLABS_API_KEY pictures, speech-to-text, spoken replies (voice and images)
OSCAR_TTS_SPEED, OSCAR_TTS_LANGUAGE, OSCAR_EDGE_TTS_URL speech speed (1 is normal), xAI's language, and the Edge read-aloud websocket (config tts_speed, tts_language, edge_tts_url)
MISTRAL_API_KEY, XAI_API_KEY, DEEPINFRA_API_KEY, MINIMAX_API_KEY, MINIMAX_GROUP_ID, GEMINI_API_KEY / GOOGLE_API_KEY the voice backends of those services, when chosen with tts_backend / stt_backend
OSCAR_VOICE_MODE, OSCAR_VOICE_REPLY, OSCAR_VOICE_RECORDER, OSCAR_VOICE_PLAYER voice mode in the full-screen chat: Ctrl+B records (on/off), replies spoken (off/voice/always), and the recorder ({output_path}) and player ({input_path}) commands when the ones found on PATH will not do (config voice_mode, voice_reply, voice_recorder, voice_player)
OSCAR_VOICE_HANDS_FREE, OSCAR_VOICE_CONTINUOUS, OSCAR_VOICE_BARGE_IN, OSCAR_VOICE_SILENCE_THRESHOLD, OSCAR_VOICE_SILENCE_SECONDS hands-free voice: recordings end when you stop talking (on/off), listening again after each spoken reply, talking over a reply stops it, and what counts as silence (config voice_hands_free, voice_continuous, voice_barge_in, voice_silence_threshold, voice_silence_seconds)
XAI_API_KEY, OSCAR_X_SEARCH_MODEL the x_search tool (posts on X through xAI): offered only with the key; the model (config x_search_model, default grok-4.5)
OSCAR_SYSTEMD_UNIT_DIR, OSCAR_SYSTEMCTL where oscar gateway install writes the unit, and the program used instead of systemctl (testing, other machines)
NO_COLOR no colours
OSCAR_COLOR truecolor, 256 or none: override the detected colour depth
OSCAR_WEB_BACKEND, OSCAR_WEB_KEYLESS web search backend; keyless tier on/off
TAVILY_API_KEY, EXA_API_KEY, PARALLEL_API_KEY, FIRECRAWL_API_KEY, FIRECRAWL_API_URL, BRAVE_SEARCH_API_KEY, SEARXNG_URL web search backends (the Firecrawl ones also let web_fetch read pages through Firecrawl)
OSCAR_WEB_FETCH_BACKEND who reads pages for web_fetch: auto (default: Firecrawl when FIRECRAWL_API_URL or FIRECRAWL_API_KEY is set), builtin or firecrawl (config web_fetch_backend; see tools)
BROWSER_MODE, BROWSER_EXECUTABLE, BROWSER_CDP_URL, BROWSER_USER_DATA_DIR, BROWSER_HEADED, BROWSER_CHROMIUM_ARGS, BROWSER_ALLOW_PRIVATE the browser tool
BROWSER_DIALOGS, BROWSER_DIALOG_TIMEOUT JavaScript dialogs: ask (default; the model answers, dismissed after the timeout), accept or dismiss; the wait in seconds (default 60; config browser_dialogs, browser_dialog_timeout)
BROWSER_PROFILE, BROWSER_PROFILE_PATH, BROWSER_PROFILE_NAME real: a local browser starts on a private copy of your own Chrome profile (cookies and local storage; see connectors); config browser_profile, browser_profile_path, browser_profile_name
BROWSER_IDLE_TIMEOUT seconds an unused browser session stays open (default 600, 0: until the chat ends; config browser_idle_timeout)
OSCAR_AUTO_CHECKPOINTS off stops saving files before write_file, edit_file and patch change them (config auto_checkpoints; default on)
OSCAR_CHECKPOINT_KEEP how many automatic checkpoints are kept (config checkpoint_keep; default 50)
BROWSERBASE_API_KEY, BROWSERBASE_PROJECT_ID, BROWSERBASE_ADVANCED_STEALTH, BROWSERBASE_PROXIES, BROWSERBASE_KEEP_ALIVE Browserbase cloud browser
OSCAR_MEMORY_PROVIDER, HINDSIGHT_API_URL, HINDSIGHT_API_KEY, HINDSIGHT_BANK_ID an external memory provider
OSCAR_THEME colour theme of the chats: oscar, tokyo-night, gruvbox, catppuccin, nord, dracula, one-dark, monokai, rose-pine, kanagawa, everforest, solarized-dark, ayu-dark, nightfox, light, auto (light or dark from the terminal), or a skin of your own in $OSCAR_HOME/skins/<name>.toml (config theme; see chat-and-tui)
OSCAR_FOOTER off: the line under each turn in the terminal chats shows tokens and cost only; on by default (time, files edited with lines added and removed, files read, commands run) (config footer)
OSCAR_NOTIFY, OSCAR_NOTIFY_AFTER bell, osc (a desktop notification through the terminal, OSC 9 and 777) or both: signal when a turn that took at least OSCAR_NOTIFY_AFTER seconds (default 30) ends, or a question waits, while the terminal does not have the focus; off by default (config notify, notify_after)
OSCAR_STATUS_FIELDS the full-screen status line's fields, in order: model, reasoning, fast, workspace, branch, sandbox, approvals, tokens, context, session, turn, duration, speed, cache, compressions (default: all; config status_fields)
OSCAR_TIMESTAMPS time or full: times beside messages in the full-screen chat (config timestamps; /timestamps switches it for the chat)
OSCAR_EXIT_TRANSCRIPT exchanges printed to the normal scrollback when the full-screen chat closes (default 5; 0: none) (config exit_transcript)
OSCAR_TERMINAL_STATUS the terminal chats and oscar run on a terminal tell the terminal what Oscar is doing (idle, working, blocked on an approval, a question or a sign-in, done, error; cleared on leaving) with OSC 7501, the Program Status Protocol: auto (default) in a Herdr terminal only (HC_TERMINAL_ID set), on in any terminal, off never; never into a pipe or a file (config terminal_status; see chat-and-tui)
OSCAR_MOUSE off: the full-screen chat leaves the mouse to the terminal (selection without Shift); on by default, the wheel scrolls the transcript (config mouse; /mouse switches it for the session)
OSCAR_EDITOR_MODE vim: the chats' input box has vim's normal and insert modes (Esc, h j k l w b e 0 $ x dd i a o A I, u); emacs (default): readline keys (config editor_mode; see chat-and-tui)
OSCAR_HISTORY_SIZE sent lines $OSCAR_HOME/history keeps for ↑ and Ctrl+R in both chats (default 5000; 0: nothing is saved) (config history_size)
VISUAL, EDITOR the editor Ctrl+G, Ctrl+X Ctrl+E and /prompt open (VISUAL first; default vi, else nano)
OSCAR_MAX_SPAWN_DEPTH how deep helpers may hand work on (config max_spawn_depth; default 1, max 3)
OSCAR_MAX_BACKGROUND_HELPERS helpers one chat conversation may run in the background at once (config max_background_helpers; default 4, 1 to 16)
OSCAR_FALLBACK fallback providers, provider:model, … (config fallback)
OSCAR_PROVIDER_RETRIES retries after a rate limit or server error, 0–5, default 3 (config provider_retries)
OSCAR_AUTO_RECOVERY_CYCLES more attempts once the retries and fallbacks are spent, 0–10, default 5 (config auto_recovery_cycles)
OSCAR_REQUEST_TIMEOUT, OSCAR_STREAM_IDLE_TIMEOUT seconds for a reply to start and between its bytes (default 120), and a stream may send only keep-alives (default 180); longer for local servers unless set (config request_timeout, stream_idle_timeout)
OSCAR_MAX_TURNS, OSCAR_HELPER_MAX_TURNS model calls per turn (default: no limit in chats and on a terminal, 150 for runs nobody watches; 0 is no limit; --max-turns) and per helper (default 250) (config max_turns, helper_max_turns)
OSCAR_PARALLEL_TOOLS, OSCAR_TURN_WATCHDOG read-only calls run at the same time (1–32, default 8); seconds a model request may show no progress (default 600, 0 off) (config parallel_tools, turn_watchdog)
OSCAR_CLARIFY_TIMEOUT seconds a clarify question waits for an answer before the model decides (default 90, 0: until answered; config clarify_timeout)
OSCAR_IDLE_COMPACT_AFTER_SECONDS compact a session picked up after this many idle seconds before its first reply (default 0: off; config idle_compact_after_seconds)
OSCAR_VERIFY_ON_STOP on: a turn that edited code and ran no test or build since is asked once to verify (config verify_on_stop; default off)
OSCAR_HELPER_STALL_SECONDS a helper with no streamed output and no tool call this long is stopped with a stalled result (default 900, 0: never; config helper_stall_seconds)
OSCAR_CODING_INSTRUCTIONS, OSCAR_CODING_INSTRUCTIONS_FILE coding guidance in the prompt: auto (code repositories, the default), on, off; a file that replaces the text (config coding_instructions, coding_instructions_file)
OSCAR_EPHEMERAL_SYSTEM_PROMPT text added to every request's system prompt, never saved (config ephemeral_system_prompt)
OSCAR_PERSONALITY the personality new sessions start with (config personality; see Personalities)
OSCAR_SKILLS_AUTO_LOAD skills loaded in full into every conversation, comma-separated (config skills_auto_load)
OSCAR_SKILLS_DISABLED skills turned off, comma-separated: kept on disk and listed, but left out of the index and never loaded (config skills_disabled; the dashboard's Skills page sets it)
OSCAR_BOOT_PROMPT, OSCAR_BOOT_DELIVER a file run as an unattended turn when oscar gateway serve starts, and where its answer goes (config boot_prompt, boot_deliver; see Hooks)
OSCAR_PLUGIN_CATALOG plugin catalog indexes, comma-separated https:// URLs or files (config plugin_catalog; see Plugins)
OSCAR_MAX_OUTPUT_TOKENS output cap per reply (default: the model's limit) (config max_output_tokens)
OSCAR_CONTEXT_WINDOW the model's context window in tokens, when Oscar cannot know it (config context_window)
OSCAR_PROMPT_CACHING, OSCAR_PROMPT_CACHE_TTL off sends no prompt-cache markers (config prompt_caching; default on); how long marked prefixes live where the provider lets Oscar choose: auto (an hour in chats, five minutes for one-shot runs), 1h or 5m (config prompt_cache_ttl)
OSCAR_CACHE_KEEP_WARM off (default) or minutes (1-240): while a terminal chat on Anthropic's API is idle, re-read the conversation through the prompt cache before it expires, for that long, at most 10 pings a session, each one's cost shown (config cache_keep_warm; see Providers and models)
OSCAR_AUTOMATION_SUGGESTIONS on: /suggestions proposes scheduled jobs from your recent sessions, read on this machine only (config automation_suggestions; default off; see Scheduled jobs)
OSCAR_ACP_MCP off: MCP servers an editor offers over ACP are not used (config acp_mcp; default on, added untrusted; see API server and editors)
OSCAR_COMPRESSION, OSCAR_COMPRESSION_THRESHOLD, OSCAR_COMPRESSION_MODEL context compression on/off, the share of the window that triggers it, the model that writes the summary (config compression, compression_threshold, compression_model)
OSCAR_REASONING_EFFORT, OSCAR_SHOW_REASONING none, low, medium, high or xhigh; show the reasoning (default on in the full-screen chat, off in the line chat, never in chat gateways) (config reasoning_effort, show_reasoning)
OSCAR_SESSION_TITLES off: no generated session titles (config session_titles; default on)
OSCAR_SESSION_ARCHIVE_AFTER_DAYS, OSCAR_SESSION_RETENTION_DAYS days idle before a session is archived, and before it is deleted, by the gateway's daily housekeeping and oscar sessions tidy (config session_archive_after_days, session_retention_days; unset: never)
OSCAR_AUX_MODEL the model for side tasks (session titles, the learning reviews); default: the provider's cheaper side model for titles, the chat's model for reviews
OSCAR_BUSY_INPUT_MODE what a message typed while Oscar works does, in every chat: interrupt (default; redirect the turn), queue (the next turn) or steer (join the turn after its next tool result) (config busy_input_mode; see chat-and-tui)
OSCAR_GOAL_MAX_TURNS, OSCAR_GOAL_MAX_MINUTES how far Oscar goes on its own toward a /goal: turns (default 20) and minutes (default 60) (config goal_max_turns, goal_max_minutes)
MATRIX_STREAMING, TELEGRAM_STREAMING, DISCORD_STREAMING off: chat replies are sent whole instead of posted early and edited (config matrix_streaming …; default on)
<KEY_VARIABLE>_2 … _16, <KEY_VARIABLE>S more keys for a provider's pool (e.g. OPENROUTER_API_KEY_2, OPENROUTER_API_KEYS=a,b)
GITHUB_TOKEN, GH_TOKEN sent to GitHub only, by oscar skills install/update
OSCAR_GITHUB_API_URL, OSCAR_GITHUB_RAW_URL, OSCAR_SKILLS_SH_URL, OSCAR_CLAWHUB_URL where skill sources live (a GitHub Enterprise server, a mirror)
OSCAR_VAULT_PASSPHRASE, OSCAR_VAULT_OP, OSCAR_VAULT_OP_ACCOUNT, OSCAR_VAULT_BW, OSCAR_VAULT_COMMAND the credential vault (see The vault)
OSCAR_IMAGE_BACKEND, OSCAR_IMAGE_MODEL, OSCAR_IMAGE_BASE_URL, OSCAR_IMAGE_API_KEY, FAL_KEY image_generate (config image_backend, image_model, image_base_url)
OSCAR_API_SERVER_KEY the bearer key of oscar api serve (environment or credentials.env, never config.toml)
OSCAR_DASHBOARD_KEY the access token of oscar dashboard instead of a new random one each start; needed with --public (16 characters or more; environment or credentials.env, never config.toml); see dashboard
OSCAR_TIMEZONE the time zone schedules are read in and the prompt's local date and time are given in, an IANA name like Europe/Berlin (config timezone; default the system's)
OSCAR_CRON off: oscar gateway serve runs no scheduled jobs (config cron)
OSCAR_CRON_MAX_JOBS, OSCAR_CRON_MIN_INTERVAL, OSCAR_CRON_TIMEOUT, OSCAR_CRON_PARALLEL job limits: how many jobs (50), shortest gap between runs (5m), longest run (10m), runs at once (1) (config cron_max_jobs … cron_parallel; see scheduling)
MATRIX_HOME_CHANNEL, TELEGRAM_HOME_CHANNEL, DISCORD_HOME_CHANNEL where a job's result or a message goes when only the platform is named (config matrix_home_channel …)
OSCAR_KANBAN_WORKER on: the gateway works through cards assigned to Oscar (config kanban_worker; default off; see kanban)
OSCAR_CRON_POLL seconds between the scheduler's (and board worker's) checks when nothing is due sooner, 1-300, default 30
OSCAR_DOCKER_IMAGE, OSCAR_DOCKER_NETWORK, OSCAR_DOCKER_CPUS, OSCAR_DOCKER_MEMORY, OSCAR_DOCKER_USER, OSCAR_DOCKER_MOUNTS, OSCAR_DOCKER_IDLE_MINUTES the Docker backend (config docker_*; see approvals and sandbox)
OSCAR_DOCKER_PROGRAM the program used instead of docker (e.g. podman)
OSCAR_SSH_HOST, OSCAR_SSH_USER, OSCAR_SSH_PORT, OSCAR_SSH_KEY, OSCAR_SSH_WORKSPACE, OSCAR_SSH_HOST_KEY_CHECK the SSH backend (config ssh_*; see approvals and sandbox)
OSCAR_SSH_PROGRAM the program used instead of ssh
OSCAR_TOOLS, OSCAR_TOOLS_CLI, OSCAR_TOOLS_TUI, OSCAR_TOOLS_MATRIX, OSCAR_TOOLS_TELEGRAM, OSCAR_TOOLS_DISCORD, OSCAR_TOOLS_API, OSCAR_TOOLS_ACP, OSCAR_TOOLS_CRON which tools are offered, for every surface or one (config tools, tools_<surface>; see tools)
OSCAR_PROCESS_NOTIFY_WAKE off: a background-process report does not start a turn of its own (config process_notify_wake; default on in the full-screen chat and the chat gateways)
OSCAR_LSP, OSCAR_LSP_WAIT_MS, OSCAR_LSP_<LANGUAGE> diagnostics after edits: on/off, how long to wait (ms), a server command per language or off (config lsp, lsp_wait_ms, lsp_rust …; see tools)
OSCAR_STALE_FILE_GUARD off: write to files even when they changed since the model read them (config stale_file_guard)
OSCAR_TOOL_OUTPUT_SAVE, OSCAR_TOOL_OUTPUT_LIMIT save long tool outputs to a file (on/off) and above how many bytes (config tool_output_save, tool_output_limit; default on, 49152)
OSCAR_BASH_AUTO_BACKGROUND_SECS seconds after which a foreground bash command moves to the background by itself (config bash_auto_background_secs; off by default; the workspace sandbox and host only)
OSCAR_TERMINAL_ENV_PASSTHROUGH secret variables passed to commands anyway, comma-separated (config terminal_env_passthrough; see approvals and sandbox)
OSCAR_PROTECTED_PATHS, OSCAR_ALLOW_CREDENTIAL_PATHS more paths no tool reads or writes, and turning the built-in credential list off — dangerous (config protected_paths, allow_credential_paths; see approvals and sandbox)
OSCAR_WEBSITE_BLOCKLIST sites the web tools and the browser never visit (config website_blocklist; see below)
OSCAR_MEMORY_CHAR_LIMIT, OSCAR_USER_CHAR_LIMIT, OSCAR_MEMORY_ENABLED, OSCAR_USER_PROFILE_ENABLED, OSCAR_MEMORY_WRITE_APPROVAL built-in memory: budgets, each file on/off, and ask to approve every change (config memory_char_limit, user_char_limit, memory_enabled, user_profile_enabled, memory_write_approval; see skills and learning)
OSCAR_SKILL_REVIEW_APPLY direct (default): background skill reviews and /learn change your skills at once through skill_manage, in the skill ledger; propose: they write proposals for you to accept (config skill_review_apply; see skills and learning)
OSCAR_REVIEW_UNTRUSTED propose (default): after a conversation that read untrusted content (web pages, search results, browser pages, untrusted MCP servers, mail, other people's chat messages), the skill review's change becomes a proposal and the memory review's changes wait in memory pending, each with a notice saying why; direct: written like any other (config review_untrusted; see skills and learning)
OSCAR_CREATION_NUDGE_INTERVAL, OSCAR_REVIEW_SKILL_AFTER the background skill review runs at the end of a turn once this many tool-calling steps passed since the last one or the last skill_manage call, where the skills tools are offered; 0 turns it off (config creation_nudge_interval, default 10; review_skill_after is its older name, and creation_nudge_interval wins when both are set; see skills and learning)

| OSCAR_TOOL_SEARCH, OSCAR_TOOL_SEARCH_MAX_TOOLS, OSCAR_TOOL_SEARCH_MAX_CHARS | tool search auto/on/off and the thresholds for auto (40 tools, 40,000 characters) (config tool_search, tool_search_max_tools, tool_search_max_chars; see tools) | | OSCAR_OPENROUTER_SORT, OSCAR_OPENROUTER_ONLY, OSCAR_OPENROUTER_IGNORE, OSCAR_OPENROUTER_ORDER, OSCAR_OPENROUTER_DATA_COLLECTION, OSCAR_OPENROUTER_ALLOW_FALLBACKS | OpenRouter provider routing (config openrouter_sort …; see providers-and-models) | | OSCAR_MODELS_DEV, OSCAR_MODELS_DEV_URL | the models.dev catalogue on/off (config models_dev), and where it is fetched from | | OSCAR_SKILL_DIRS | more skill folders, comma-separated, used once trusted (config skill_dirs) |

The connector variables are read from the environment first, then from credentials.env, then from any other *.env file in $OSCAR_HOME (such as matrix.env; read-only, the first file by name wins), then (for the non-secret choices) from config.toml. See connectors.

More keys, by topic

The example at the top shows the keys most setups touch. These are the others; each one is also a variable (in brackets; the environment wins over the file) and is described in full on the page linked.

Chat platforms (bot tokens and the Matrix access token are secrets: credentials.env or the environment, never config.toml):

Keys (variables) What
telegram_allowed_users, discord_allowed_users, matrix_allowed_users (TELEGRAM_ALLOWED_USERS, DISCORD_ALLOWED_USERS, MATRIX_ALLOWED_USERS) who may talk to the bot, comma-separated: user ids (Telegram also @username) (telegram, discord, matrix)
telegram_require_mention, discord_require_mention, matrix_require_mention (TELEGRAM_REQUIRE_MENTION …) false: answer every message in groups, server channels and group rooms (default true; private chats never need a mention)
telegram_allowed_chats, telegram_group_allowed_chats (TELEGRAM_ALLOWED_CHATS, TELEGRAM_GROUP_ALLOWED_CHATS) when set, the only Telegram groups answered in (both lists count) (telegram)
telegram_free_response_chats (TELEGRAM_FREE_RESPONSE_CHATS) Telegram groups where every message is for Oscar
telegram_allowed_topics, telegram_ignored_topics, telegram_free_response_topics (TELEGRAM_ALLOWED_TOPICS …) Telegram forum topics (chat/topic): the only ones answered in, never answered in, answered without a mention
telegram_allow_bots, discord_allow_bots (TELEGRAM_ALLOW_BOTS, DISCORD_ALLOW_BOTS) messages from other bots: off (default), mentions, all (the bot must be allowed too)
discord_allowed_channels, discord_ignored_channels, discord_free_response_channels (DISCORD_ALLOWED_CHANNELS …) Discord server channels: the only ones answered in, never answered in, answered without a mention (discord)
discord_no_thread_channels (DISCORD_NO_THREAD_CHANNELS) channels answered in place even with discord_auto_thread on
discord_history_backfill, discord_history_backfill_limit (DISCORD_HISTORY_BACKFILL, DISCORD_HISTORY_BACKFILL_LIMIT) earlier messages as context with a mention (default on, 20)
discord_reply_to_mode (DISCORD_REPLY_TO_MODE) a reply points at your message: first (default), all, off
discord_allowed_mentions (DISCORD_ALLOWED_MENTIONS) who a reply may ping: users, roles, everyone (comma-separated; default nobody)
discord_message_content (DISCORD_MESSAGE_CONTENT) false: do not ask for the Message Content intent (direct messages and mentions still work; free-response channels need it)
discord_upload_limit_mb (DISCORD_UPLOAD_LIMIT_MB) the largest upload the server takes (default 10; 50 or 100 with boosts)
matrix_max_media_mb (MATRIX_MAX_MEDIA_MB) the largest file taken from a Matrix room (default 100) (matrix)
discord_home_channel (DISCORD_HOME_CHANNEL) where a job's result or a message goes when only discord is named (also matrix_home_channel, telegram_home_channel)
discord_progress (DISCORD_PROGRESS) off, new, all, verbose: tool activity in Discord (over progress; also matrix_progress, telegram_progress)
matrix_reactions (MATRIX_REACTIONS) false: no 👀/✅ marks in Matrix (default on; also telegram_reactions, discord_reactions)
matrix_typing, telegram_typing, discord_typing (MATRIX_TYPING …) false: no typing indicator on that platform
matrix_group_sessions (MATRIX_GROUP_SESSIONS) group rooms: per_user (default) or shared, for Matrix only (over group_sessions; also telegram_group_sessions, discord_group_sessions) (chat gateways)
matrix_admins (MATRIX_ADMINS) who may use the admin commands in Matrix (default: the allowed users; also telegram_admins, discord_admins) (roles)
matrix_approvers, telegram_approvers, discord_approvers (MATRIX_APPROVERS …) who may answer approvals on that platform (over approvers; default: the admins)
matrix_pairing, telegram_pairing, discord_pairing (MATRIX_PAIRING …) on: strangers who write privately get a pairing code (over pairing; default off)

A [platform_hints.<platform>] table (matrix, telegram, discord, cli, …) takes append (text added to the built-in platform hint in the system prompt) or replace (text used instead of it; "" removes it); see chat gateways.

Pictures and voice (voice and images):

Keys (variables) What
model_vision (OSCAR_MODEL_VISION) whether the main model sees images: auto (detected, the default), yes, no
vision_model, vision_provider (OSCAR_VISION_MODEL, OSCAR_VISION_PROVIDER) a model that looks at pictures for one that cannot (and its provider, when another; its key must be set); also used by vision_analyze
tts_model, tts_format, tts_base_url, tts_command (OSCAR_TTS_MODEL …) spoken replies: the model, the format (mp3, opus, wav), another OpenAI-compatible /audio/speech address (key OSCAR_TTS_API_KEY), the command for tts_backend = "command"
stt_model, stt_language, stt_base_url, stt_command (OSCAR_STT_MODEL …) speech to text: the model, the language spoken, another OpenAI-compatible /audio/transcriptions address (key OSCAR_STT_API_KEY), the command for stt_backend = "command"

The browser and local memory (connectors):

Keys (variables) What
browser_executable (BROWSER_EXECUTABLE) which Chromium a local browser starts
browser_cdp_url (BROWSER_CDP_URL) a browser to attach to over CDP
browser_user_data_dir (BROWSER_USER_DATA_DIR) a persistent browser profile, for logins that should last
browser_headed (BROWSER_HEADED) true: show the browser window (needs a display)
local_memory_recall (OSCAR_LOCAL_MEMORY_RECALL) facts the local memory provider recalls per message (default 8, 1-50)
local_memory_half_life_days (OSCAR_LOCAL_MEMORY_HALF_LIFE_DAYS) how fast an old fact weighs less, in days (default 30)

Password managers (vault): vault_op (OSCAR_VAULT_OP; on uses 1Password's op, or its path), vault_op_account (OSCAR_VAULT_OP_ACCOUNT; with several 1Password accounts), vault_bw (OSCAR_VAULT_BW; Bitwarden's bw), vault_bws (OSCAR_VAULT_BWS; Bitwarden Secrets Manager's bws) and vault_command (OSCAR_VAULT_COMMAND; a command that prints a password). The vault's passphrase is a secret: OSCAR_VAULT_PASSPHRASE in the environment or credentials.env only.

Toolsets per surface (tools): tools holds for every surface; tools_cli, tools_tui, tools_matrix, tools_telegram, tools_discord, tools_api, tools_acp and tools_cron (OSCAR_TOOLS_CLI …) set one surface: the line chat and oscar run, the full-screen chat, each chat platform, the API server, editors over ACP, and scheduled jobs with the board worker.

Website blocklist

website_blocklist holds rules separated by commas (or an array); an absolute path or ~/… names a file with more rules, one per line (# starts a comment):

  • example.com blocks that domain and every subdomain (www.example.com);
  • *.corp.example blocks the subdomains only; * stands for any characters anywhere (admin.*);
  • an IP address blocks that address; a full URL is read as its host.

web_fetch refuses a blocked site at the first address and at every redirect, so a redirect never reaches one; @url: references, image URLs given to vision_analyze, and the browser's navigation refuse it too, with a message that names the rule. The list is read when Oscar starts (restart a gateway after changing it). web_search takes words, not addresses, and is not filtered.

Limits, caching, compression and reasoning

These hold for every surface — the full-screen and line chats, oscar run, oscar serve and the chat gateways — unless configured. oscar doctor shows each value and where it came from.

  • max_turns: how many model calls one turn may make. By default there is no limit in the chats (full-screen, line, dashboard), the chat gateways, editors and oscar run on a terminal: someone is there to stop it (Ctrl-C, /stop, !stop), and a cap cut long refactors off half-way. Runs nobody watches (scheduled jobs, the HTTP API, oscar run from a script) keep a budget of 150 (scheduled jobs: 30). 0 (or unlimited) is no limit. With a limit, the model is told to wrap up as the budget nears its end and, at the limit, asked with tools off to say what it did and what is left; the turn ends with that summary, not an error, and "continue" carries on with a fresh budget. --max-turns N overrides it for one run. helper_max_turns (default 250) is each helper's own budget (task); a call may ask for less, never more.
  • The guards keep a turn without a limit from running away:
    • Repeats. In a chat, the third identical call in a row that also gets the identical result comes back with a note telling the model to change course; the sixth stops the turn. Runs nobody watches stop at the fourth identical call. Polling a background process (process_manage list, poll, log, wait) and waiting on helpers never count.
    • Stalls. When three steps in a row run nothing (every call refused, malformed or unknown), the model is told so; at six the turn stops.
    • Empty replies (no text, no call) are asked for once more with a short nudge; a model that says it is about to act ("Let me check the logs.") but makes no call is nudged once to make the call or give its answer — never when it asked you a question.
    • The watchdog (turn_watchdog, default 600 s, 0 off): a model request that shows no progress (no text, reasoning or notice) for that long is given up like a dropped connection, and recovery tries again.
  • parallel_tools (default 8): when one reply makes several calls that only read — read_file, search_files, web_fetch, web_search, session_search, skill_view, memory list, vision_analyze, source_query — they run at the same time (up to this many) and their results come back in the order the model made them. Each call is gated first, in order, so any approval question still comes one at a time before anything runs. MCP tools that their server marks read-only (readOnlyHint) and the servers' resource and prompt tools join them (calls to one server still go one at a time on its connection). Writes, shell commands, the browser, input to processes, helpers and the other MCP tools always run one after another. 1 turns it off.
  • verify_on_stop (default off): when a turn edited code files (write_file, edit_file, patch on a source file) and ran no test, build, type check or linter after the last edit, the model is asked once, before it finishes, to verify the change (or say why it cannot). At most one such nudge per turn; it never fires without tools.
  • Timeouts and recovery: see Providers and models. A reply must start within request_timeout (120 s), a stream must keep sending bytes within it, and events (not just keep-alives) within stream_idle_timeout (180 s); local servers get 1800 s and 900 s unless set. A timeout is retried like any network error, provider_retries times (default 3), then by the fallback chain, then up to auto_recovery_cycles (default 5) more attempts.
  • max_output_tokens: the output cap of each reply. By default it is the model's own limit: from the provider's model list where it says, else what Oscar knows of the family (Claude, GPT, Gemini), else 16,384 (4,096 for local servers and non-Claude Bedrock models). A provider that allows less says so, and its limit is used from then on. A reply cut off at the cap is continued (up to three times) and joined; a tool call cut off at the cap is not run, and the model is told to do the work in smaller steps.
  • prompt_caching (default on) and prompt_cache_ttl (default auto: an hour in chats, five minutes for one-shot runs): see Providers and models.
  • cache_keep_warm (default off): see Providers and models.
  • compression (default on), compression_threshold, compression_model, context_window: when the conversation passes a share of the model's context window — 75%, or 50% for windows of 512,000 tokens and more, since every request re-sends the whole conversation — Oscar keeps the first exchange and the recent messages and replaces the middle with a summary the model writes (or compression_model — any provider, see side-task models). The summary keeps the goals, decisions, files and commands, results, errors and open tasks; the latest request is kept word for word; a tool call never loses its result. The window comes from context_window, the model list, what Oscar knows of the family, or 128,000 (32,768 for local servers), and is corrected when a provider answers "too long" (the conversation is then compressed and sent again). If the summary cannot be written, long tool outputs are shortened instead. /compress [focus] (chats) and !compress [focus] (gateways) do it on demand. The session keeps every message as it was said, plus a record of each compaction, so a resumed session gives the model what it saw.
  • idle_compact_after_seconds (default 0, off): a session picked up again after at least that long without activity — /resume or oscar -c in the chats, oscar run --session/--continue, the next message in a chat gateway — is compacted before the first reply, so a conversation you come back to hours later does not re-send its stale history every turn. It never fires when the conversation is already as small as compaction would leave it (a quarter of the threshold), and it follows the same rules as the automatic compaction (the summary model, the fallback, the compaction record). Example: 1800 after half an hour.
  • reasoning_effort (unset: the provider's default) and show_reasoning (default: on in the full-screen chat, off in the line chat, never in chat gateways): see Providers and models. /reasoning changes both for one chat (/reasoning <level> save keeps the level). The levels are none, minimal, low, medium, high, xhigh and max.
  • fast_mode (default off): priority processing from the start where the provider sells it (OpenAI, Anthropic fast mode); /fast toggles it in a chat. See Providers and models.
  • text_verbosity (unset by default): low, medium or high, how long replies should be, sent to the models that take it (OpenAI's GPT-5 models, over Chat Completions and the Responses API); other models are sent nothing, so they never refuse a request for it.
  • Per-model settings: a [models."<provider>:<model>"] table sets context_window, max_output_tokens, compression_threshold, reasoning_effort, supports_vision and prompt_cache_ttl for one model, before any catalogue and before the settings above.
  • Per-provider settings: a [provider_settings.<id>] table sets how a built-in provider is reached: request_timeout (seconds for a reply to start and between its bytes), connect_timeout (seconds to connect, default 30), streaming = false (whole replies instead of a stream, for servers whose streaming is broken; chat-completions APIs only, the others always stream) and max_retries (0-5, over provider_retries). They apply to that provider wherever it is used, the fallback chain included; oscar doctor lists them.
  • Coding instructions (coding_instructions, default auto): when the workspace is a code repository (inside a git checkout, or with a project file such as Cargo.toml, package.json, pyproject.toml, go.mod or a Makefile), a short block of guidance for working on code goes into the prompt: read before changing, keep changes focused, run the narrowest test or build after a change, no commits unless asked, say what was checked. on adds it everywhere, off never; coding_instructions_file replaces the text with your own (an absolute path, ~/…, or a path in $OSCAR_HOME). It sits with the workspace context, so it is cached with the rest of the prompt.
  • Ephemeral system prompt (ephemeral_system_prompt, and oscar run --system-ephemeral <text|@file>): text added to the end of the system prompt of every request and never saved — the stored session, exports and /resume do not have it. oscar run --prefill-file <path> puts example messages before the conversation the same way (JSON: a list of {"role": "user"|"assistant", "content": "…"}, or {"messages": […]}; or JSON Lines, one message per line). For scripts and evaluations.
  • What the prompt says about now: the local date, weekday and hour with the time zone (timezone, default the system's) — by the hour, so the prompt stays the same (and cached) for an hour; the model runs date for the minute — plus the model and provider it runs on and the session id.
  • skills_auto_load: skills (comma-separated names) loaded in full into every conversation, for the house rules you always want followed; a name that is not found is skipped with a warning in the log.
  • clarify_timeout (default 90 s, 0 waits until answered): how long a question from the model waits; then it decides itself and says what it assumed. Approval questions are not affected (approval_timeout).

Personalities

SOUL.md says who Oscar is; a personality says how it talks in one session. /personality <name> (the full-screen and line chats) or !personality <name> (chats) picks one, /personality list shows them, /personality off goes back to SOUL.md alone. The choice is kept with the session: a resumed or branched session keeps its tone. personality in config.toml is the one new sessions start with (off in a session keeps it off there).

Built in: concise (short, no preamble), teacher (explains the why, step by step), friendly (warm and encouraging), formal (precise, professional) and skeptic (questions assumptions, points out risks). Add your own as a [personalities.<name>] table (text, optional description) or as $OSCAR_HOME/personalities/<name>.md (an optional first line description: …); yours win over a built-in of the same name. The text goes right after SOUL.md in the stable part of the prompt, so it is cached with it, and it sets tone and style only: approvals, tools and the rules stay as they are.

Sessions

Every conversation is stored in oscar.db with its messages, usage and task list (see chat and the CLI reference).

  • session_titles (default on): after a session's first reply, one short model call writes its title in the background — the provider's title_model, else aux_model (any provider), else the provider's cheaper side model where it documents one, tried once more with the chat's model if that fails. The opening is redacted before it is sent. A title you set (/title, title in a chat, oscar sessions rename) is never replaced. oscar run, the API server and editors (ACP) do not title their sessions; lists show their first message.
  • session_archive_after_days: sessions idle this many days are archived (they leave the lists, stay searchable and come back when used). Pinned sessions are kept as they are.
  • session_retention_days: sessions idle this many days are deleted with their messages and usage. Pinned sessions, sessions a scheduled job was created in or ran in, sessions a kanban card links to, and the conversation each chat is currently on are kept and reported.

Both are unset by default (nothing is archived or deleted). oscar gateway serve applies them once a day; oscar sessions tidy [--dry-run] applies them now. The database itself stays compact with oscar sessions optimize.

Workspace rules

The workspace is the folder you start Oscar in (or --workspace, OSCAR_WORKSPACE, workspace in config.toml).

  • Host mode (the default): the workspace is only where commands start, so Oscar starts from any folder, your home directory included. Its own data ($OSCAR_HOME) stays out of reach wherever you start, by absolute or relative path, and is never part of a checkpoint. Started from inside $OSCAR_HOME, Oscar starts in your home directory instead.
  • Workspace sandbox and Docker: the workspace is the one folder commands can change, so Oscar refuses a workspace that is or contains your home directory (unless --allow-home-workspace <dir> names it) and an OSCAR_HOME inside it.
  • SSH: commands and file tools use the remote workspace (ssh_workspace); the local folder only supplies context files and @path references.

A workspace inside OSCAR_HOME and a relative OSCAR_HOME are always refused. When a named profile runs, the same holds for all of ~/.oscar (where the default profile and the other profiles keep their keys).

Profiles

~/.oscar is the default profile; oscar profile create NAME makes another home at ~/.oscar/profiles/NAME, selected with --profile NAME (-p) or OSCAR_PROFILE, or made the default with oscar profile use NAME (kept in ~/.oscar/active-profile; the flag and the variables still win). Each has its own config.toml, credentials.env, memory, sessions, skills and gateway service (oscar-gateway-NAME.service). See Operations.