man oscar The manual Skills and tools

Connectors (optional components)

Optional components: web search, browser, memory providers, image generation, MCP.

MANUAL / SKILLS AND TOOLS 16 / 29

Oscar works with nothing but a model provider. Everything on this page is optional: a component that is not configured, or cannot work on this machine, is simply not offered to the model, and nothing else changes. oscar doctor lists each one as on or off, says why, and says how to turn it on; oscar doctor --probe also checks that a configured memory provider answers.

Settings come from three places, first match wins:

  1. the environment;
  2. $OSCAR_HOME/credentials.env (keys; mode 0600);
  3. $OSCAR_HOME/config.toml (choices, never keys).

The variable names are the usual ones for each service, so an existing .env with TAVILY_API_KEY=... or BROWSERBASE_API_KEY=... works as it is: copy the lines into credentials.env.

config.toml key Variable What it chooses
web_backend OSCAR_WEB_BACKEND the search backend (default: picked by which key is set)
web_keyless OSCAR_WEB_KEYLESS on (default) or off: free keyless services (the search tier, and the Edge voice used for speech when no TTS backend is set)
web_search_native OSCAR_WEB_SEARCH_NATIVE off (default) or on: the model searches with its provider's own web search where Oscar knows one (see below)
web_fetch_allow_private OSCAR_WEB_FETCH_ALLOW_PRIVATE off (default) or on: web_fetch may read addresses on this machine and the local network (never link-local ones such as cloud metadata)
web_fetch_render OSCAR_WEB_FETCH_RENDER off (default) or on: web_fetch with render: true loads the page in the browser first
web_fetch_backend OSCAR_WEB_FETCH_BACKEND auto (default), builtin or firecrawl: who reads pages for web_fetch (see Reading pages through Firecrawl)
browser BROWSER_MODE auto (default), off, local, cdp, browserbase
browser_executable BROWSER_EXECUTABLE which Chromium to start
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
browser_headed BROWSER_HEADED show the browser window (needs a display)
browser_profile BROWSER_PROFILE temp (default) or real: start on a private copy of your own Chrome profile
browser_profile_path BROWSER_PROFILE_PATH your browser's user data folder, e.g. ~/.config/google-chrome (default: looked for)
browser_profile_name BROWSER_PROFILE_NAME the profile in it (default Default; e.g. Profile 1)
browser_idle_timeout BROWSER_IDLE_TIMEOUT seconds an unused browser session stays open (default 600; 0 keeps it until the chat ends)
BROWSER_ALLOW_PRIVATE true lets the browser open addresses on this machine or the local network (e.g. a dev server)
memory_provider OSCAR_MEMORY_PROVIDER local, hindsight, mnemosyne, honcho, mem0, supermemory, retaindb, byterover, cognee, openviking, memori, or unset for built-in memory only
memory_mirror OSCAR_MEMORY_MIRROR on (default) or off: the built-in memory tool's changes go to the provider too
image_backend OSCAR_IMAGE_BACKEND openai, provider, fal, or unset (off): what image_generate uses
image_model OSCAR_IMAGE_MODEL the image model (defaults: gpt-image-1, fal-ai/flux/schnell)
image_base_url OSCAR_IMAGE_BASE_URL another server speaking the OpenAI images API

The model gets web_search (titles, URLs and snippets) next to web_fetch (read one page). Like web_fetch, a search asks for approval, because the query leaves the machine.

Which backend answers:

  1. web_backend, when set: exactly that one. If it is not configured, search reports that and does not fall back to another vendor.
  2. Otherwise the first backend with a key: Tavily (TAVILY_API_KEY), Exa (EXA_API_KEY), Parallel (PARALLEL_API_KEY), Firecrawl (FIRECRAWL_API_KEY, or FIRECRAWL_API_URL for a self-hosted one), Brave (BRAVE_SEARCH_API_KEY), SearXNG (SEARXNG_URL, your own instance), Perplexity (PERPLEXITY_API_KEY, its Search API; PERPLEXITY_BASE_URL for another endpoint).
  3. Otherwise the keyless tier: the public free endpoints of Exa, then Parallel. No account and no identifier are sent; Parallel gets a random id per process for rate limiting. Free tiers rate-limit, so a key is the reliable choice. web_keyless = "off" turns this tier off, and then search is off until a key is set.

A keyed backend that fails (bad key, rate limit) reports the error; the query is never re-sent to another vendor. The keyless tier moves on to the next endpoint when one fails.

DuckDuckGo needs no key and is used only when you choose it: web_backend = "duckduckgo". Oscar reads its plain HTML results page, as any client would, with Oscar's own name as the user agent. It is not part of the automatic keyless tier, so no query goes there unless you chose it. When DuckDuckGo answers with something other than a results page (it sometimes asks to check that a person is searching), the search reports that and stops; Oscar does not try to get around it, so pick another backend if it keeps happening.

Reading pages through Firecrawl (web_fetch)

web_fetch reads pages with Oscar's own fetcher unless Firecrawl is configured. With FIRECRAWL_API_URL (a Firecrawl you run, often http://127.0.0.1:3002) or FIRECRAWL_API_KEY (the hosted API at api.firecrawl.dev) set, pages go through Firecrawl's scrape endpoint and come back as their main content in markdown: Firecrawl renders pages that build their text with JavaScript and leaves out menus and footers. The same settings turn on Firecrawl for web_search.

web_fetch_backend decides:

  • auto (the default): Firecrawl when FIRECRAWL_API_URL or FIRECRAWL_API_KEY is set, else the built-in fetcher;
  • builtin: always Oscar's own fetcher, even with Firecrawl configured;
  • firecrawl: Firecrawl. With neither variable set, the built-in fetcher reads pages and each result says why.

The key is sent (as a bearer token) only when FIRECRAWL_API_KEY is set, so a self-hosted Firecrawl without authentication gets none. Documents named by their URL (.pdf, .docx …) are still read by Oscar itself, and render: true (with web_fetch_render) still goes to the browser.

When Firecrawl fails (not reachable, an error answer, no text), the built-in fetcher tries the page once, and the result starts with a line saying so: [Firecrawl failed (connection failed); read with the built-in fetcher]. A page that answers with an error (Firecrawl reports, say, a 404) is reported as such and not fetched again.

Addresses. A Firecrawl on your machine can reach your machine and your local network, so web_fetch never lets it become a way in:

  • the URL is checked exactly as for a direct fetch before Firecrawl hears of it: public addresses only (unless web_fetch_allow_private), cloud metadata addresses always refused, and the website blocklist. A URL that fails is refused and nothing is sent;
  • Firecrawl follows redirects itself, so the address it says it read the page from is checked the same way afterwards. When that address may not be reached, or Firecrawl does not say, the text is dropped and the result is an error (the built-in fetcher is not tried);
  • Firecrawl's own address may be loopback; that is the point of running one. The pages it is asked for may not be.

What Oscar cannot see: Firecrawl resolves names and loads pages itself, so the requests it makes along the way (a redirect hop before the last address, a page's images and scripts, a name that resolves differently for it than for Oscar) are not checked; only where the page ended up is. Their content is not returned, but they are made. If that matters on your network, run Firecrawl where it cannot reach anything private, or keep web_fetch_backend = "builtin", whose connections are pinned to the addresses it checked.

oscar doctor shows the backend at the start of its web_fetch line, for example backend firecrawl at http://127.0.0.1:3002 (FIRECRAWL_API_URL found), the built-in fetcher when it fails.

Browser (browser)

A real Chromium driven over the Chrome DevTools Protocol, for pages that need JavaScript, logins, forms or clicks. Oscar speaks the protocol itself; nothing (no Node, no Playwright package) is installed. Like web_fetch, each use asks for approval.

Backends, tried in this order with browser = "auto" (the default):

  1. Browserbase (cloud), when BROWSERBASE_API_KEY and BROWSERBASE_PROJECT_ID are set. Options: BROWSERBASE_ADVANCED_STEALTH (default off), BROWSERBASE_PROXIES (default on), BROWSERBASE_KEEP_ALIVE (default off); features your plan lacks are dropped and retried. The session is released when the browser closes.
  2. Any browser over CDP at BROWSER_CDP_URL: a ws://…/devtools/browser/… address or the http://host:port of a Chrome started with --remote-debugging-port. Oscar opens its own tab there and closes only that tab.
  3. A local Chromium: BROWSER_EXECUTABLE, else the first of chromium, chromium-browser, google-chrome, chrome, microsoft-edge, brave-browser on PATH, else Playwright's download cache (~/.cache/ms-playwright or PLAYWRIGHT_BROWSERS_PATH). It runs headless with a fresh temporary profile that is deleted afterwards; BROWSER_USER_DATA_DIR (config browser_user_data_dir) keeps a persistent profile instead, for logins that should last. BROWSER_HEADED=true shows the window when there is a display. BROWSER_CHROMIUM_ARGS adds flags.

browser = "local" | "cdp" | "browserbase" uses only that backend and says why when it cannot; browser = "off" removes the tool. With no backend at all there is simply no browser tool.

What the model can do: open a URL, snapshot (the page's title, URL and a numbered list of links, buttons and fields), click and fill by number or CSS selector (fill can submit), press a key, scroll, back/forward, read the page text, run js, take a screenshot into the workspace, send a raw cdp command, answer a JavaScript dialog, and close. The browser starts on first use. In the chat and in oscar run it closes when the session ends; in the chat gateways each conversation keeps its browser across messages.

Screenshots the model can see. A screenshot is saved in the workspace and, when the model accepts images (model_vision, see voice and images), attached to the tool result so the model looks at the page itself; a model known to be blind gets the path only.

Several browsers at once. Each call may name a session (letters, digits, -, _; default default). Every named session is a browser of its own: its own process and cookies for a local browser, its own tab on a CDP browser, its own cloud session on Browserbase. close with a session ends only that one. Up to four run at once per conversation, so the model can, say, compare two shops side by side or keep a signed-in session next to a clean one.

Idle sessions close. A session nobody used for browser_idle_timeout seconds (default 600) is closed (a local browser is stopped and its temporary profile deleted); the next call starts a fresh one and says so. A session in the middle of an action is never idle.

Many steps in one go. To batch browser actions (open several pages and collect a value from each, fill a form and check the result), the model can write a Lua script with execute_code that calls tools.browser{...} in a loop; each call still goes through the approval gate on its own. For example:

lua
local found = {}
for _, url in ipairs({"https://example.com/a", "https://example.com/b"}) do
  tools.browser{action = "open", url = url, session = "scan"}
  found[url] = tools.browser{action = "js", expression = "document.title", session = "scan"}
end
print(oscar.json.encode(found))

Your own browser profile

browser_profile = "real" starts the local browser on a private copy of your own Chrome or Chromium profile, so sites see you signed in:

toml
browser_profile = "real"
browser_profile_path = "~/.config/google-chrome"   # optional: looked for if unset
browser_profile_name = "Default"                   # or "Profile 1", …

At the start of each session Oscar copies the profile's cookies (Cookies, Network/Cookies), its local storage (Local Storage), Preferences and the browser's Local State into a fresh temporary folder (mode 0700, at most 512 MB) and starts the browser there; the copy is deleted when the session closes. Your live profile is only read: Oscar never starts a browser on it, never writes to it, and never copies saved passwords (Login Data), autofill and saved cards (Web Data), history, bookmarks, extensions or caches, nor follows symbolic links. Close Chrome first for the most consistent copy.

What this exposes, plainly: the model can act as you on every site you are signed in to in that profile — read your mail, post, buy — within the approvals you give (every browser action asks unless your approval mode says otherwise). Cookies stay encrypted as Chrome stored them; on Linux the key is in your desktop keyring, so they open only where the browser Oscar starts can reach the same keyring (your own desktop session; on a headless server they usually do not). Use a separate Chrome profile with only the sign-ins Oscar should have if you want less exposure. The setting applies to a browser Oscar starts; a browser attached over CDP keeps its own profile. browser_profile = "real" and browser_user_data_dir together is an error.

Attach to the browser you are using. In the terminal chats, /browser connect [url] attaches the browser tool to a Chrome started with --remote-debugging-port=9222; see chat and TUI.

JavaScript dialogs (alert, confirm, prompt, "leave this page?") never hold the browser up. With browser_dialogs = "ask" (the default) an alert is closed and reported, and any other dialog is reported the moment it opens and waits for the model's dialog action (OK or Cancel, and the answer to a prompt); one nobody answers is dismissed after browser_dialog_timeout seconds (default 60). "accept" or "dismiss" answers every dialog that way at once. Either way the model is told what the page asked.

Guards: only http, https and about:blank can be opened (no file:, javascript:, data:, chrome:); addresses on this machine or the local network are refused unless BROWSER_ALLOW_PRIVATE=true. This check covers the address you open, not the redirects, links or scripts that follow. Screenshots are written only where the file tools may write. Oscar has no anti-bot evasion code of its own; Browserbase's stealth mode is that service's feature.

Memory providers

Oscar's own memory (MEMORY.md, USER.md; see skills and learning) is always there. A memory provider adds long-term memory kept by another system. At most one is active, chosen with memory_provider. When one is active:

  • before each turn, memories relevant to your message are recalled and added to that message in a fenced <memory-context> block, marked as recalled data rather than your words. The system prompt does not change, so the provider's prompt cache keeps working, and the session transcript keeps exactly what you typed. Greetings, thanks and slash commands skip the recall. The full-screen chat shows "recalled N memories";
  • after the answer, the exchange is saved in the background. A one-shot oscar run and the chat wait briefly for that save before exiting;
  • the provider's tools are offered to the model;
  • before compression summarises older messages away, the provider gets them first (in the background), so a provider that extracts memories can keep what lasts in them;
  • when a conversation ends (/new, leaving the chat, !new in a gateway, the end of oscar run), the provider gets the whole conversation for a last look (OpenViking commits the session then; local extracts facts from it);
  • with memory_mirror on (the default), what the built-in memory tool adds, replaces or removes is passed on to the provider too (local, OpenViking, Memori and Mem0 keep it; the others ignore it);
  • a provider that is slow (over 10 seconds) or failing is skipped for that turn with a note; it never stops a turn.

Secrets never reach a provider. Everything Oscar sends one — the recall query, each exchange, a conversation at its end or before compression, a mirrored memory entry, and the arguments of the provider's own tools — goes through the same redactor as tool output first, so a key typed into a chat or printed by a command is replaced by <redacted:…> before it leaves. Invisible and direction-changing characters are taken out of it too.

The provider's write tools are screened like the built-in memory. What the model stores through hindsight_retain, mem0_add, mem0_update, honcho_profile, honcho_conclude, supermemory_store, retaindb_remember, brv_curate, cognee_remember, viking_remember, local_memory_add or Mnemosyne's write tools (mnemosyne_remember, _update, _validate, _batch, _remember_canonical, _triple_add, _graph_link, _scratchpad_write, _shared_remember) is refused, before anything is sent, when the memory tool would refuse it: what looks like a credential, invisible or direction-changing characters, text that steers the model, deceives the user, sends data away, runs remote code or is obfuscated (the built-in memory's 2,000-character limit does not apply). The model gets the same message as from the memory tool. Recalled memories lose invisible and direction-changing characters before they are added to your message.

The exchanges saved after each turn, and a conversation at its end or before compression, reach the provider as they are (redacted, without hidden characters): what it stores or extracts from them on its own side (most run their own model over them) is not scanned by Oscar, and it may include what a web page said. local extracts with Oscar's own model, and the facts it writes down pass the same screen (one that fails is dropped). Recalled memories are always marked as recalled data, never as your words.

A provider that is configured but unusable is left out with a warning, and oscar doctor says what is missing (it never contacts the provider); oscar doctor --probe also checks that it answers. Keys are never shown, and a refused key is reported as "the API key was refused" without the server's text.

Provider How Oscar reaches it Needs
Local SQLite in Oscar's home nothing (free; stays on this machine)
Hindsight HTTP API a server, or a cloud key
Mnemosyne starts mnemosyne mcp (MCP over stdio) pipx install 'mnemosyne-memory[mcp,embeddings]'
Honcho HTTP API (v3) a cloud key, or a local server
Mem0 Platform API or a self-hosted REST server a key, or host
Supermemory HTTP API SUPERMEMORY_API_KEY
RetainDB HTTP API RETAINDB_API_KEY
ByteRover the brv command brv installed
Cognee HTTP API of a running Cognee server the server
OpenViking HTTP API of an OpenViking server the server (local, or with a key)
Memori HTTP API (Memori's cloud, or your own service) MEMORI_API_KEY

Each reads $OSCAR_HOME/<name>/config.json if it exists, then environment variables or credentials.env (where keys belong).

Local

toml
# config.toml
memory_provider = "local"

Long-term memory that costs nothing and stays on this machine. Facts are kept in SQLite at $OSCAR_HOME/memory/local.db (owner-only) with a full-text index. Before each turn the facts that match your message are recalled, ranked by relevance and by age: a fact loses half its weight every local_memory_half_life_days (default 30), so recent facts win ties without old ones disappearing. The best local_memory_recall (default 8) go with the message.

After each exchange a model reads it and writes down the short, lasting facts in it (your preferences, decisions, people, projects, your setup) — at most five, one sentence each, never secrets. The same happens for a conversation's tail when it ends and for what compression is about to drop. Which model: local_memory_model (model or provider:model), else compression_model, else the main one; it sees what the main model already sees. Point it at a local model (an Ollama or llama.cpp provider) and nothing leaves the machine at all. local_memory_extract = "off" calls no model: a short note of what you said is kept instead.

Tools: local_memory_search (by words; without a query, the newest facts), local_memory_add (a fact word for word), local_memory_forget (by id). Entries the built-in memory tool writes are kept here too.

config.toml key Default
local_memory_model compression_model, else the main model the extraction model
local_memory_extract on off: notes only, no model call
local_memory_recall 8 facts recalled per message (1-50)
local_memory_half_life_days 30 how fast old facts weigh less

OpenViking

OpenViking keeps context as a file system of viking:// addresses and extracts memories from conversation sessions on the server.

shell
# credentials.env (or $OSCAR_HOME/openviking/config.json: endpoint, account,
# user, agent, timeout)
OPENVIKING_ENDPOINT=http://127.0.0.1:1933
OPENVIKING_API_KEY=...        # unset: a local server in development mode
OPENVIKING_USER=default
OPENVIKING_AGENT=oscar        # optional: sent as the acting peer
  • Each exchange goes into an OpenViking session named after the conversation; when the conversation ends, or compression is about to drop older messages, the session is committed — that is when OpenViking extracts memories from it.
  • Before a turn, memories matching your message are found and added.
  • With a key, it is sent as X-API-Key and as a bearer token; without one, the account and user are sent as headers (development mode).
  • Tools: viking_search (mode: deep searches within this conversation's context), viking_read (abstract, overview or the full entry), viking_remember, viking_forget, viking_browse.
  • New entries of the built-in memory tool are written as memory files (viking://user/<user>/memories/preferences/… for the user profile, …/patterns/… for Oscar's notes).

Memori

Memori records conversations for an entity (you) and a process (Oscar) and recalls what matters from them.

shell
# credentials.env
MEMORI_API_KEY=...
# optional: MEMORI_API_URL (default https://api.memorilabs.ai),
# MEMORI_ENTITY_ID (default oscar-user), MEMORI_PROCESS_ID (default oscar)

Each exchange is recorded; before a turn, matching memories are recalled; new built-in memory entries are recorded as facts. Tools: memori_recall, memori_quota. The paths of the service can be changed in $OSCAR_HOME/memori/config.json (recall_path, store_path, facts_path, quota_path; defaults /v1/recall, /v1/conversations, /v1/facts, /v1/quota) for your own deployment or another API version.

Hindsight

Hindsight keeps memories in a bank with entity resolution and several retrieval strategies. Oscar talks to its HTTP API; there is nothing to install on Oscar's side.

toml
# config.toml
memory_provider = "hindsight"

Settings are read from the first of:

  1. $OSCAR_HOME/hindsight/config.json;
  2. ~/.hindsight/config.json (shared with other Hindsight clients);
  3. HINDSIGHT_API_URL, HINDSIGHT_API_KEY, HINDSIGHT_BANK_ID, HINDSIGHT_BUDGET, HINDSIGHT_MODE from the environment or credentials.env.

The key can stay in credentials.env (HINDSIGHT_API_KEY=...) while the rest is in the file. A minimal file for a server you run yourself:

json
{ "mode": "local_external", "api_url": "http://127.0.0.1:8888", "bank_id": "oscar" }
Field Default Meaning
mode cloud cloud (hosted API, needs a key) or local_external (your server)
api_url per mode the API address
bank_id oscar the memory bank
budget mid low, mid or high effort for recall and reflect
memory_mode hybrid hybrid (recall each turn + tools), context (recall only), tools (tools only)
auto_recall / auto_retain true recall before turns / save after them
retain_async true let the server process saves in the background
recall_max_tokens 4096 size of a recall
recall_max_input_chars 2000 how much of your message is used as the query
recall_types all e.g. ["world", "experience", "observation"]
recall_min_scores none drop weak matches, e.g. {"reranker": 0.1}
recall_prompt_preamble built-in the heading above recalled memories
retain_context, retain_tags label and tags stored with each save
recall_additional_banks none more banks to recall from, read-only (e.g. another agent's bank, for continuity); Oscar writes only to bank_id
bank_mission, bank_retain_mission none what the bank is for and what to keep from conversations; set when Oscar creates the bank (or finds it empty with no mission), never over an existing one
timeout 120 seconds for a request (recall before a turn is capped at 10)

Each session is one Hindsight document, appended turn by turn, so resuming a session never overwrites what was saved before. Tools: hindsight_recall (search), hindsight_reflect (a reasoned answer across the bank) and hindsight_retain (store a fact now).

local_embedded mode, where a client starts Hindsight's Python daemon itself, is not something Oscar does: start hindsight-api yourself and use local_external.

What leaves the machine: with Hindsight active, every turn's message and answer go to the configured server, in cloud mode to Hindsight's hosted API.

Mnemosyne

Oscar starts Mnemosyne's own MCP server (mnemosyne mcp) on first use, one process for the whole Oscar process, and keeps it running; Mnemosyne does its own embeddings, write policy and migrations. Oscar never opens its database directly. With no settings it uses Mnemosyne's default data folder, so an existing Mnemosyne memory is picked up as it is.

toml
memory_provider = "mnemosyne"

Optional $OSCAR_HOME/mnemosyne/config.json:

Field Default Meaning
command, args mnemosyne, ["mcp"] how to start the server
data_dir Mnemosyne's default where its database lives
bank default the memory bank
default_scope global scope of saved memories
sync_roles ["user"] whose words are saved after a turn ([] saves nothing; add "assistant" for replies)
tools all offered which tools the model gets ([] = none)
auto_recall true recall before each turn
shared_surface_read false recall from the shared surface too
auto_sleep, sleep_threshold off consolidate (mnemosyne_sleep) every N saved turns
ignore_patterns none messages not to save
timeout, startup_timeout 60, 120 seconds per call / for the server to start
env none extra environment for the server

The same settings work as MNEMOSYNE_* environment variables (MNEMOSYNE_COMMAND, MNEMOSYNE_DATA_DIR, MNEMOSYNE_BANK, …). The server gets a cleared environment: PATH, HOME, locale, MNEMOSYNE_*, model-cache variables and env, nothing else. Its log is $OSCAR_HOME/mnemosyne/server.log.

Before a turn Oscar recalls (recency-weighted, plus canonical facts) and keeps only memories that share enough distinctive words with your message, at most five, never the assistant's own earlier words. After a turn your message is saved (up to 500 characters). Tools: mnemosyne_remember, _recall, _get, _update, _forget, _invalidate, _validate, _stats, _sleep, _batch, the _canonical, triple, graph, scratchpad and shared-surface tools, and _diagnose. Export, import, media and bulk-clean tools are not offered.

On a cold start the server loads its embedding model, so the first turn may go without a recall. All of Oscar's calls share one Mnemosyne session: memories other agents saved with global scope are visible, their session-scoped ones are not. Mnemosyne's own config.yaml takes precedence over ignore_patterns passed by Oscar.

What leaves the machine: nothing through Oscar. Mnemosyne may download its embedding model, and calls an LLM or embedding API only if you configured it to.

Honcho

Honcho models the user and the agent as peers and reasons about them. Oscar uses its v3 HTTP API: Honcho's cloud by default, "environment": "local" for http://localhost:8000 (no key needed there).

Settings: the first of $OSCAR_HOME/honcho/config.json and ~/.honcho/config.json (a hosts.oscar block wins over top-level keys), then HONCHO_API_KEY, HONCHO_BASE_URL, HONCHO_ENVIRONMENT, HONCHO_TIMEOUT. Main fields: apiKey, baseUrl, workspace (default oscar), peerName (user), aiPeer (oscar), recallMode, recallSync, contextTokens, dialecticCadence, dialecticReasoningLevel, saveMessages, messageMaxChars, sessionStrategy (per-session; each conversation is its own Honcho session).

Before a turn: the session summary and what Honcho knows about you and about Oscar. A deeper "dialectic" answer is worked out in the background and arrives with the next turn (the first turn waits up to 2 s for it). After a turn your message and the reply are added to the session. Tools: honcho_profile, honcho_search, honcho_reasoning, honcho_context, honcho_conclude.

What leaves the machine: messages, replies, searches and the conclusions Oscar writes, to the configured Honcho.

Mem0

Mem0 extracts facts from conversations. Either the hosted Platform (MEM0_API_KEY) or your own Mem0 REST server (host, with an optional key). Mem0's Python library mode is not used: run its REST server.

$OSCAR_HOME/mem0/config.json fields: host, api_key, user_id (default oscar-user), agent_id (oscar), rerank, sync_max_chars (450), timeout. Environment: MEM0_API_KEY, MEM0_HOST, MEM0_USER_ID, MEM0_AGENT_ID, MEM0_API_URL.

Before a turn: the ten best matches for your message. After a turn: both messages (each cut at a sentence end within 450 characters) go to Mem0 for extraction. Tools: mem0_search, mem0_add, mem0_update, mem0_delete (the last two refuse memories of another user).

What leaves the machine: the shortened messages, searches and the user and agent ids.

Supermemory

Supermemory: needs SUPERMEMORY_API_KEY; optional SUPERMEMORY_BASE_URL, SUPERMEMORY_CONTAINER_TAG (default oscar). The config file accepts container_tag, auto_recall, auto_capture, max_recall_results, profile_frequency, capture_mode, search_mode, api_timeout and custom containers.

Before a turn: your profile facts (on the first turn and every few turns) and matching memories with their age. After a turn the exchange is appended to one document per conversation (a new one every 4 hours); trivial messages are skipped. Tools: supermemory_store, supermemory_search, supermemory_forget, supermemory_profile.

What leaves the machine: the cleaned exchanges and searches.

RetainDB

RetainDB: needs RETAINDB_API_KEY; optional RETAINDB_BASE_URL, RETAINDB_PROJECT (default default). Config fields: project, user_id, agent_id, dialectic (default true), timeout.

Before a turn, in parallel: your profile, a context query, a synthesized answer about you (one model call on RetainDB's side; dialectic: false turns it off) and Oscar's self-model. After a turn the exchange is ingested. Tools: retaindb_profile, _search, _context, _remember, _forget, _list_files, _read_file, _ingest_file, _delete_file. Uploading local files is not offered.

What leaves the machine: exchanges and queries.

ByteRover

ByteRover's brv command keeps a local context tree. Oscar finds brv on PATH, in ~/.brv-cli/bin, /usr/local/bin or ~/.npm-global/bin (or set command), and runs it in $OSCAR_HOME/byterover with a cleared environment. Config: auto_extract (default true), command, cwd, env; BRV_API_KEY for ByteRover's cloud sync.

Before a turn: brv query with your message (10 characters or more). After a turn: brv curate with the exchange. Tools: brv_query, brv_curate, brv_status.

What leaves the machine: only what brv itself syncs, when you gave it a key.

Cognee

Cognee builds a knowledge graph. Oscar talks to a Cognee server you run: COGNEE_BASE_URL, optional COGNEE_API_KEY, COGNEE_DATASET (default agent_sessions), COGNEE_TOP_K. Config fields: base_url, api_key, dataset, top_k, session_prefix, recall_context_chars, improve_every (10).

Before a turn: a graph recall of the relevant context (no answer generated on the server). After a turn the question and answer are added to the conversation's session, and every improve_every turns the session is folded into the permanent graph. Tools: cognee_recall, cognee_remember, cognee_forget (deleting needs confirm).

What leaves the machine: turns and queries, to your Cognee server and the model it is configured with.

Image generation (image_generate)

Off until you choose a backend, because every image costs money. Each call asks for approval (in auto mode it is approved with an audit line), and the prompt goes to the backend.

image_backend Requests go to Key
openai https://api.openai.com/v1/images/generations (gpt-image-1 by default) OPENAI_API_KEY (only when OPENAI_BASE_URL is unset or OpenAI's), or OSCAR_IMAGE_API_KEY
openai with image_base_url <image_base_url>/images/generations: any server speaking the OpenAI images API, local ones included OSCAR_IMAGE_API_KEY (may be empty)
provider the configured chat provider's <base>/images/generations that provider's key; image_model must name one of its image models
fal fal.ai, https://fal.run/<image_model> (fal-ai/flux/schnell by default) FAL_KEY
toml
# config.toml
image_backend = "openai"
image_model   = "gpt-image-1"     # optional
text
# credentials.env
OPENAI_API_KEY=sk-...

provider works with providers that take a plain key on an OpenAI-style API (not Anthropic, Bedrock, Vertex, Azure or sign-in providers). oscar doctor shows image on: image_generate with <backend> <model> at <url>, or why it is off. The tool is described in tools.

MCP servers

Servers listed in $OSCAR_HOME/mcp.json (add them with oscar mcp add, see cli reference) give Oscar their tools: each one under its own name, mcp_<server>_<tool>, plus mcp_list and mcp_call. With no servers configured, none of these exist. Tool lists come from a cache, so starting Oscar never waits for a server; a server without a cached list is asked once at start (for at most 5 seconds), and a server starts for real when its first tool is called.

json
{"servers": {
  "files":  {"command": "mcp-files", "args": ["--root", "/srv/docs"], "cwd": "/srv/docs",
             "idle_timeout": 600},
  "github": {"url": "https://api.example.com/mcp", "headers": {"Authorization": "Bearer ${GITHUB_TOKEN}"},
             "trust": "untrusted"},
  "corp":   {"url": "https://mcp.corp.example/mcp", "client_cert": "/etc/oscar/client.pem",
             "client_key": "/etc/oscar/client.key",
             "identity_header": {"name": "X-Oscar-Instance", "value_from": "profile"}},
  "old":    {"command": "legacy-server", "enabled": false}
}}
Key Default Meaning
command, args, env a local server, spoken to over stdio; it gets only PATH, HOME, LANG, LC_ALL, TMPDIR and its own env, never Oscar's keys; args and env values may use ${NAME} (environment or credentials.env), so a key stays out of mcp.json
cwd Oscar's folder the folder a local server runs in
url, headers a remote server (Streamable HTTP); header values may use ${NAME} (environment or credentials.env)
auth none oauth: sign in with oscar mcp login <name>
enabled true false: not started, its tools not offered
lazy false true: never asked at Oscar's start, even without a cached list; it starts on first use (mcp_call, mcp_list), and its tools appear from then on
timeout 120 seconds a request or tool call may take
connect_timeout 60 seconds to start the server and complete the handshake
idle_timeout off seconds without a call after which the connection is closed (a local server stops); the next call starts it again
max_lifetime off seconds after which a connection is replaced by a fresh one at the next call
identity_header none {"name": …, "value_from": "profile"} sends the Oscar profile's name, {"name": …, "value": …} a fixed value; a header of the same name in headers wins
client_cert, client_key none a client certificate (PEM; the key in the same file or in client_key) for servers that require mutual TLS; paths may use ${NAME}
trust trusted untrusted: see below
sampling off {"enabled": true, "model": "provider:model", "max_tokens": 1024}: the server may ask Oscar's model for completions
tools all {"include": [...]} or {"exclude": [...]}: which of its tools become Oscar tools (globs with * and ?)

What the model gets from a server.

  • Its tools, each asking for approval as the approval mode says. Results may hold text, images (up to four per result go to the model, which sees them when it can), embedded resources and links.
  • When the server offers resources: mcp_<server>_list_resources and mcp_<server>_read_resource (text, or an image for the model). When it offers prompts: mcp_<server>_list_prompts and mcp_<server>_get_prompt (filled in with its arguments). These appear only for servers that offer them (oscar mcp refresh notices a server that started to).
  • When a server says its tool list changed (notifications/tools/list_changed), Oscar lists the tools again and updates the cache; the new tools are offered from the next turn.

Trust. A server you add is trusted: its tools ask as any other tool does — in auto mode they run (with an audit line), in ask mode they ask. Mark a server "trust": "untrusted" (or oscar mcp add … --trust untrusted) and every one of its tools that does not declare itself read-only (readOnlyHint: true) always asks a person, even in auto mode, is never covered by an allow rule or a session grant, and is refused where nobody can answer (scheduled jobs, the board worker). Any value other than trusted counts as untrusted. Its resource and prompt tools only read and ask as usual. An untrusted server's ${NAME} references (URL, headers, OAuth client, certificate paths, a local server's args and env) may only read variables named MCP_<SERVER>_* — the server's name upper-cased, other characters as _ (tickets → MCP_TICKETS_TOKEN); any other name is refused when Oscar connects, so a server from an import, a profile or an editor cannot have your provider key sent to it. Servers you add yourself are trusted and read any variable.

When a server asks Oscar something. A server may ask in the middle of a call:

  • ping and the list of roots (none) are answered.
  • Sampling (a completion from Oscar's model) only when that server's sampling.enabled is true: one answer, without tools, on the main model or sampling.model, at most sampling.max_tokens (default 1024, at most 8192); secrets in what it sends are redacted first. Otherwise it is refused.
  • Elicitation (a question for the user): in the full-screen and line chats you are asked right there, with a form built from the schema the server sent — answer or decline first, then each field (choices for yes/no and fixed sets); answers are checked against the schema (types, lengths, ranges, email/uri/date/date-time formats) and asked again when wrong, and only valid answers go back (dismissing the form cancels). A form Oscar cannot show (nested objects, lists, more than 20 fields) is declined. Chat gateways, oscar run, scheduled jobs, the API and editors never show forms: they decline in the call, the question reaches the model with the tool's result, and the model can ask you (clarify) and call the tool again with your answer.
  • Read-only tools (readOnlyHint: true) and the resource and prompt tools may run beside the other reads of one reply (parallel_tools); calls to one server still go one at a time.

Reloading. /reload-mcp in the terminal chats and !reload-mcp in the chat gateways (admins) read mcp.json again, reconnect every server that is on, list and cache their tools, forget the tools of servers that were removed, and say what was added, reconnected, turned off or removed. The new tools apply from the next message. oscar mcp refresh does the same from a shell. oscar mcp list shows each server's state, including whether it is untrusted, lazy or allowed to sample. See also integrations.