On desktop, open Settings → Appearance to choose a theme and follow the system appearance or stay in light or dark mode. To use different themes for light and dark mode, select the corresponding preview within each theme. Appearance preferences are saved separately on each device.
On desktop, use Change theme in the command palette to select a theme without leaving chat. Press Cmd+Option+A on macOS or Ctrl+Alt+A on Windows/Linux to open the theme picker directly. Use Change appearance in the command palette to choose System, Light, or Dark independently of the theme. Cmd+Option+Shift+A on macOS or Ctrl+Alt+Shift+A on Windows/Linux cycles through those modes. Customize these shortcuts under Settings → Keybindings.
On mobile, open Settings → Appearance. Mobile uses the Onicode theme and has its own text, code, and terminal preferences. It does not follow custom themes, environment themes, or defaults.
On Android 12 or newer, choose the Material You theme in Appearance to use colors from your wallpaper. Selecting the Onicode theme replaces those colors. Material You can be selected separately for light and dark appearances. Android uses Material You Layout by default unless you have turned it off in Appearance. It changes shapes, spacing, and controls independently of the selected theme.
Git-backed projects show branch and worktree controls below the composer while you create a thread. The controls retreat as the composer docks after you send the first message.
Turn on Composer context to keep those controls visible after the thread starts. This preference applies to the desktop app.
Turn on Render math in Settings → Appearance to typeset LaTeX in messages and Markdown
previews on desktop and mobile. It reads $…$, $$…$$, \(…\), and \[…\], outside of code.
Fenced math blocks also render. Formulas work in tables, including absolute-value bars.
Dollar amounts such as $5 and $10 stay text; write \$ to keep any other dollar sign literal.
Wide formulas scroll horizontally while the surrounding text wraps. Copying a formula or
exporting a table preserves the TeX.
The composer keeps TeX source editable, including when rich text is enabled. The Render math preference is saved separately on each device.
The main sidebar, right panel, and terminal drawer open and close immediately by default. Move the Panel animations slider above 0 ms to add motion, up to 400 ms, unless reduced motion is enabled in your operating system. Moving between threads always snaps to the selected thread's panel state without replaying its transitions.
On desktop, choose Create theme to adjust a palette, or import an Onicode or VS Code theme. The theme editor's color picker lets you select an area of the app to find the color to change. Export your theme as JSON to share it.
For a change that colors cannot make, open Custom CSS in the theme editor. The CSS is saved with
the theme, applies after Onicode's own styles on desktop, and is included in exports. Use
.dark or :root:not(.dark) to target one appearance.
Custom CSS cannot load files. @import, image-set(), and url() are ignored, except url()
with a data: address or an #id. This keeps an imported theme from sending what is on your screen
to another site. For a full-size image, use a background image.
Class names in the app change between releases. For rules that keep working, target data-slot
and other data- attributes, such as [data-chat-header] or [data-slot="button"].
If a rule hides something you need, run onicode theme set onicode on the server to switch back
to the built-in theme, or press Cmd+Option+A on macOS or Ctrl+Alt+A on Windows/Linux to
pick another theme.
An agent running in the desktop app's local environment can restyle Onicode for you. Ask it to change the look,
for example "make Onicode's chat header taller" or "give Onicode a solarized theme". It publishes
an environment theme with colors and CSS, and the desktop app switches to it.
It can also switch it to light, dark, or system mode. The thread must run
in Full access. Ask the agent to set the built-in onicode theme to undo it.
Environment themes and defaults come from the desktop app's main local environment. With the desktop app's local environment off, they come from the background service on the same machine while the app is connected to it. Other connections do not use them.
Select a published theme in Settings → Appearance to follow its palette as the server updates it. Duplicate makes an independent copy you can edit. A saved custom theme with the same ID takes precedence. If the server stops publishing the selected theme, Onicode falls back to its standard theme.
Run this on the server to set a default and switch the desktop app on that machine to it:
onicode theme set nightfallA desktop app that is closed applies it when it reconnects. It applies the setting once;
choosing another theme afterward sticks until the next onicode theme set. Run the command again to
reapply it, even if the name is unchanged.
onicode theme set onicode switches the desktop app back to the built-in theme.
onicode theme clear removes the default without changing anyone's current theme. onicode theme show lists
the default and published themes.
Save a theme exported from Onicode into ~/.onicode/userdata/themes/ on the server, or the themes
directory under your custom state directory. The filename supplies the theme ID: nightfall.json
can be selected with onicode theme set nightfall. Keep the filename stable when updating its colors.
Do not use system, light, dark, or onicode.
For an integration that generates a palette, this shorter format also works:
{
"name": "Nightfall",
"appearance": "dark",
"canvas": "#1a1b26",
"accent": "#7aa2f7",
"colors": {
"terminalSelection": "#292e42",
"error": "#f7768e"
}
}Set appearance to light or dark and supply hex colors for canvas and accent. Onicode
generates the rest. The optional colors overrides use the names in the theme editor's advanced
view. An optional css string adds custom CSS, up to 50,000 characters. Desktop
0.15.0 and older apply a theme whose CSS is longer than 20,000 characters with its colors only.
Write updates to a temporary file and rename it into place so clients never read a partial theme. Invalid files are not published.
A published theme can have a full-size background image. Ask an agent, for example "use
~/Pictures/wallpaper.jpg as Onicode's background", or save a JPEG, PNG, or WebP file of up to
16 MB beside the theme file: nightfall.jpg beside nightfall.json. The theme's CSS decides
where the image shows:
[data-workspace-area="conversation"] {
background: var(--theme-background-image) center / cover no-repeat;
}Delete the image file to remove it.