oscar dashboard serves a small web page on this machine for what you
would otherwise do with several commands: see Oscar's state, chat with it,
read past sessions and how Oscar has been used, manage scheduled jobs and
the board, skills, MCP servers, chat platforms and pairing, the gateway
service, hooks and plugins, edit memory and settings, look at another
profile, and read the logs.
oscar dashboard # http://127.0.0.1:8650
oscar dashboard --listen 127.0.0.1:9000It prints a sign-in link such as http://127.0.0.1:8650/login#token=….
Open it in your browser: the page signs you in and removes the token from
the address bar. The token is new at every start and is also written to
$OSCAR_HOME/dashboard.token (mode 0600), so you can sign in again by
pasting it into the sign-in form. Ctrl-C stops the dashboard.
Users with a password
Instead of the token (or a key you chose, below), people can sign in with a user name and password:
oscar dashboard user add ana # asks for the password twice (echo off)
echo "$PW" | oscar dashboard user add bo --password-stdin
oscar dashboard user passwd ana
oscar dashboard user remove bo
oscar dashboard user listPasswords have at least 12 characters and are stored only as Argon2id
hashes (with their salt) in $OSCAR_HOME/dashboard-users.json, mode 0600;
the password itself is never written anywhere. Checking a wrong name takes
as long as a wrong password. Wrong passwords and wrong tokens count
together towards the lockout. A running dashboard reads the users when it
starts; restart it after a change. Every user acts as the owner: there are
no roles.
The page is plain HTML, CSS and JavaScript built into the oscar binary
(no build step, nothing fetched from elsewhere), styled like the
full-screen chat. It uses the workspace, sandbox mode, approve mode and
model Oscar starts with, like oscar chat would.
Security
The dashboard acts as you: whoever is signed in can chat with Oscar (and so run tools through the approval gate), approve commands, change settings and store keys. It is built to keep that to you.
- Loopback only. By default it listens on 127.0.0.1. Another address
needs
--publicand either a key you chose inOSCAR_DASHBOARD_KEY(16 characters or more, in the environment orcredentials.env) or at least one dashboard user. On loopback, requests must name the loopback address in theirHostheader, so a web page whose name was pointed at 127.0.0.1 cannot talk to it. - TLS in front for
--public. The dashboard speaks plain HTTP. Beyond this machine, put it behind a reverse proxy that terminates TLS (Caddy, nginx, a tunnel) and reach it only through that; otherwise the key, passwords and session cookies cross the network readable. The dashboard says so when it starts with--public. - A token for every request. Only the sign-in page and its stylesheet,
script and icon are served without it. Signing in sets a session cookie
(a separate random value,
HttpOnly,SameSite=Strict, 12 hours) — the token itself is never put in a page, a cookie or a log. Scripts can sendAuthorization: Bearer <token>instead. Ten wrong tokens within five minutes lock the sign-in for a while. WithOSCAR_DASHBOARD_KEYset, that key is the token and no token file is written. - Cross-site requests are refused. Everything that changes something is
a POST (nothing changes on GET), and must carry the session's CSRF token
and come from the dashboard's own origin (
Origin, orReferer). - A strict Content-Security-Policy on every response: scripts, styles
and requests to this server only, no inline scripts or styles, no
third-party assets, no framing; plus
nosniff,X-Frame-Options: DENY,Cache-Control: no-store. - No secrets to the browser. Settings are shown with secrets masked and
keys by name only; transcripts, logs, tool activity and replies are
masked like
oscar logsmasks them, and every string the server sends goes through Oscar's redaction once more. Keys can be stored from the page but never read back. - Limits: 256 KiB per request, 32 connections, two chat turns at once and one per session.
- Approvals are real. An approval answered in the page counts like one
in the terminal, and is written to the audit log
(
audit/approvals.jsonl, shown byoscar logs auditas "approved … in the dashboard" or "denied … in the dashboard"). - Another profile is read-only. The Profiles page can show another profile's home; every change is refused until you confirm writing to it by typing its name. A bar on every page says which profile is shown.
- Plugin pages are sandboxed. A plugin's own pages are served under
/plugins/<name>/<key>/…(the key is random per start and given only to signed-in pages) with the same policy plussandbox allow-scripts: they run in an origin of their own, cannot use your sign-in, cannot read the API, and cannot answer an approval.
Pages
Status — version, profile, home and workspace, model, approve and sandbox modes, the gateway (service and running processes), configured platforms, how many sessions, jobs (and paused ones) and board cards there are, plugins and their state, and the last lines of the error log.
Chat — talk to Oscar in a new session or continue one (from Sessions,
"Continue in chat"). Replies stream in; tool activity shows as it happens.
Approvals follow the approve mode, as in the terminal: with ask each
command that needs approval shows its tool, reason and exact command with
Allow once, Allow for this session (when offered) and Deny; with
auto commands that are not dangerous run with an audit line and dangerous
ones still ask here; with never they are refused. Questions the model
asks with clarify appear with their choices and a free-text answer; you
can skip them. Stop ends the reply (the turn stops on the server too).
Slash commands such as /cost or /help work, and plugin aliases become
their messages. Saving a new login for the browser vault is not offered
here (use the terminal chat).
Sessions — recent sessions by title (or first message), where they came
from and their size; archived ones behind Show archived. Full-text search
across all of them, a transcript view (tool results folded), Archive /
Unarchive and Pin / Unpin, and the same exports as oscar sessions export: Markdown, JSON or one self-contained HTML page (secrets redacted).
A chat started here gets a title after its first reply, like the terminal
chats.
Analytics — what oscar insights reports, for the last 7, 30, 90 or 365
days: sessions (and new ones), messages, tokens, cost at today's prices
(and as recorded when spent), approvals (automatic, asked, refused); a
column chart of your messages per day, bars for the models (turns and
cost), the most used tools, how approvals went and where sessions came
from, and the busiest days. Every chart can be shown as a table. The charts
are drawn in plain SVG by the page itself.
Jobs — scheduled jobs with their schedule, state, next run, last result
and where results go. Run now makes a job due at once (the gateway's
scheduler starts it within a minute; without a running gateway it runs when
one starts). Edit changes the name, schedule, prompt or where results go,
with the same checks as when a job is created. History lists the last runs: when,
how long, the result and whether it was delivered. Pause, resume, remove,
or create a job (name, schedule such as every 2h, daily 09:00,
0 9 * * 1-5 or in 30m, prompt, and optionally where to deliver:
telegram, matrix:!room:server …, checked like oscar cron add). New
and edited jobs also take the skills loaded for each run (comma-separated;
a skill that is not there is refused) and a model of their own (model or
provider:model; empty goes back to the default), checked as the command
line checks them. Below, the board:
columns side by side, each card with its number, title, assignee and
priority, and a menu to move it to another column.
Skills — every skill with its origin (bundled, yours, agent-managed, a
plugin's) and, for installed ones, where it came from; open one to read it.
Turn off keeps a skill on disk but leaves it out of the index and refuses
to load it (skills_disabled in config.toml); Turn on brings it back.
Install from the hub searches the hubs, or takes a source as oscar skills install does; Preview fetches it and shows its files, scripts,
lint and the safety scan's findings without installing anything, and
Install then installs exactly that content (if the source changed since
the preview, it is refused; dangerous findings need a tick that you read
them; lint failures are never installed). The curator's last run and the
archived skills. Proposals from the background reviewer, with their scores
and diff, to accept or reject.
MCP — every server in mcp.json with what it connects to, how it signs
in, its status and its cached tools. Refresh connects and caches its
tools; Turn off sets "enabled": false on its entry in mcp.json (not
started, its tools not offered) and Turn on removes it; Remove deletes it with its tool cache and sign-in. Sign
in starts an OAuth sign-in: the page shows the address to open (or a
device code); the browser comes back to Oscar's loopback address on the
machine Oscar runs on, and from another machine you paste the address the
browser ended on. Add a server takes a catalog name, a remote URL (with
OAuth) or a local command; a value that looks like a secret is refused
(store it under Config → Secrets and write ${NAME}). Servers that plugins
bring are listed and managed with their plugin.
Channels — for Matrix, Telegram and Discord: whether it is configured,
the allowed users, admins, home channel, progress mode and whether a
mention is needed in groups (the same keys as config.toml, e.g.
telegram_admins), with the value in effect when the environment
overrides one; and its secrets (the bot token; the Matrix homeserver,
access token and recovery key) shown only as set or not set and written
into credentials.env (mode 0600), never read back. Below, the pairing
queue: approve or deny waiting codes, and the people pairing approved.
The gateway reads all of this when it starts: restart it after a change.
Gateway — the service (oscar-gateway[-profile].service) and its state,
running gateway processes and the platforms they serve, the boot prompt,
Start, Restart and Stop (through the same module as oscar gateway start|restart|stop; only when a service is installed), every profile's
gateway, and the last lines of the gateway log.
Hooks — every hook ([[hooks]] and plugins'), its event, command,
tools, timeout, where it comes from and whether it is allowed to run (see
consent in Hooks; consent itself is given on the command
line, where commands can be read in full), the event webhooks, and Try an
event: run the hooks of one event with a made-up event, as oscar hooks test does.
Plugins — installed plugins with their version, state, source and permissions, and links to the pages enabled plugins add (see Plugins). Installing and enabling stay on the command line, where permissions are shown before you say yes.
Profiles — every profile with its home and gateway. Show (read-only) switches the pages to another profile's home; Show and change… asks you to type the profile's name, then changes made in the pages go to that profile. Chat always stays with the profile the dashboard started in. Back to … returns.
Memory — MEMORY.md and USER.md, each with how much of its budget is
used (2,200 and 1,375 characters). Add, edit and remove entries; a change
that would go over the budget is refused with the reason.
Config — every key config.toml takes, its value (secrets masked) and
whether an environment variable overrides it; set or unset a key with the
same checks as oscar config set (a value that looks like a key is
refused). The keys in credentials.env are listed by name only; a form
stores a new one (a name like TAVILY_API_KEY) write-only into
credentials.env (mode 0600). Changes to approve, sandbox, the provider
or the model take effect when Oscar (and the dashboard) start again.
Logs — the last lines of the error, agent, gateway, audit or full-screen
chat log, masked, with optional refresh every few seconds. The gateway log
is the file; oscar logs gateway also reads journald.
Endpoints
The page uses a JSON API that scripts can use too, with the bearer token:
GET /api/status, /api/sessions (?archived=1 for the archived ones),
/api/sessions/search?q=…, /api/sessions/<id>,
/api/sessions/<id>/export?format=md|json|html,
/api/jobs, /api/jobs/<id>/runs, /api/kanban, /api/skills,
/api/skills/<name>, /api/hub?q=…, /api/curator,
/api/proposals, /api/proposals/<id>, /api/memory, /api/config,
/api/logs?source=…&lines=…, /api/analytics?days=N, /api/mcp,
/api/channels, /api/gateway, /api/hooks, /api/plugins,
/api/profiles; POST /api/chat ({"session", "text"},
answered as server-sent events), /api/chat/answer, /api/jobs,
/api/jobs/<id> (edit: {"name", "schedule", "prompt", "deliver"}),
/api/jobs/<id>/pause|resume|remove|run,
/api/sessions/<id>/archive|unarchive|pin|unpin, /api/kanban/cards/<id>/move,
/api/skills/<name>/enable|disable, /api/hub/preview ({"source"}),
/api/hub/install ({"source", "confirm": <hash from the preview>, "force"}), /api/proposals/<id>/accept|reject, /api/memory/memory|user,
/api/config, /api/config/unset, /api/config/secret, /api/mcp
(add), /api/mcp/<name>/refresh|login|paste|enable|disable|logout|remove,
/api/channels/<platform> ({"key", "value"}),
/api/channels/<platform>/secret ({"name", "value"}),
/api/pairing/<code>/approve|deny, /api/gateway/start|stop|restart,
/api/hooks/test ({"event", "tool"}), /api/profiles/switch
({"name"}, or {"name", "write": true, "confirm": <the name again>}).
Plugin pages: GET /plugins/<name>/<key>/<file>, the address /api/plugins
gives.