Skip to main content

Configuration

Neusis Code is configured with JSON files. Config sources are loaded in order of precedence (highest first), and merged:

SourcePath
Projectneusiscode.json (or neusiscode.jsonc), walking up from the working directory
Global~/.config/neusiscode/neusiscode.json (or neusiscode.jsonc)

:::note Renamed config files Since Neusis Code 0.3.2 a project's opencode.json or opencode.jsonc is no longer read. Rename it to neusiscode.json or neusiscode.jsonc. :::

Project config can also live in a .neusiscode/ directory. TUI-only settings (theme, keybinds, notifications, prompt sizing) live in a separate tui.json — see TUI settings below.

:::note Auto-config on first run On first run, if no global config file exists (neusiscode.json, neusiscode.jsonc or config.json), Neusis Code creates ~/.config/neusiscode/neusiscode.jsonc containing only a $schema reference (for editor autocompletion). The installer separately writes a full neusiscode.json with your API key, default model, and registry. TUI keys (theme, keybinds, tui) placed in neusiscode.json are ignored with a warning — move them to tui.json. :::

Example​

{
"$schema": "https://docs.neusis.ai/config.json",
"model": "neusiscode/auto",
"provider": {
"neusiscode": {
"options": { "headerTimeout": 10000 }
}
}
}

Model selection​

The default model is neusiscode/auto. It is written into your config by the installer and is the launch default. With auto, the proxy picks a concrete model once per session and holds it for that session (session-sticky), which keeps prompt caching effective across turns.

You can also pin a concrete model. The models currently published by the neusiscode provider are:

Model idDisplay nameContext
neusiscode/autoAuto (default)272K
neusiscode/gpt-6-astraGPT-6 Astra272K
neusiscode/gpt-6.1-solGPT-6.1 Sol272K
neusiscode/gpt-6-solGPT-6 Sol272K
neusiscode/gpt-6-lunaGPT-6 Luna272K
{
"model": "neusiscode/gpt-6.1-sol"
}
note

The model list tracks the live proxy and is refreshed via registry re-syncs, so the exact ids and context sizes can change over time. Run Neusis Code's model picker to see what is currently available.

Prompt caching​

With setCacheKey enabled on an @ai-sdk/openai-compatible provider, Neusis Code (0.3.2 and later) sends a snake_case prompt_cache_key set to the session id on outgoing requests. Subagents send their parent session's id, so their requests carry the same cache key as the parent conversation.

The snake_case form matters: @ai-sdk/openai-compatible forwards provider options verbatim with no camelCase-to-snake_case conversion, so the camelCase promptCacheKey would never reach the wire as a usable key.

:::note Provider differences

  • The neusiscode provider (the LiteLLM proxy) drops prompt_cache_key. Caching there works from the session header Neusis Code sends with every request, so setCacheKey has no effect on that provider.
  • A Project Brain router forwards prompt_cache_key, which keeps each conversation's cache separate. The Neusis Code config that Project Brain generates sets setCacheKey: true. :::

Provider timeouts​

Provider requests support several timeout options under provider.<id>.options:

OptionTypeMeaning
timeoutms, or false to disableTimeout for the full request.
headerTimeoutms, or false to disableTimeout waiting for response headers. Defaults to 10000 (10s) for OpenAI.
chunkTimeoutmsMax gap between streamed SSE chunks before the request is aborted.
{
"provider": {
"openai": {
"options": { "headerTimeout": 10000 }
}
}
}

Registry​

Neusis Code can sync skills, agents, and commands from public GitHub repositories on startup. The installer points this at the public Neusis registry by default. Each repo is fetched over HTTPS (no git binary required) and surfaced as a config source, just like a project .neusiscode/ directory.

{
"registry": {
"repos": [
{
"url": "https://github.com/Neusis-AI-Org/neusiscode-registry",
"branch": "main"
}
]
}
}
FieldTypeNotes
urlstringhttps://github.com/<owner>/<repo> of a public GitHub repository. Other hosts and private repositories are not supported.
branchstringBranch to download. Defaults to main.

Other keys, such as subdir or auth, are ignored.

See Skills and Agents for what the registry provides.

Remote config discovery​

When you authenticate against a provider that supports it, Neusis Code looks for a config document at the provider's well-known path (/.well-known/neusiscode). That document may inline a config object and/or a remote_config pointer to a further URL. The discovered config is merged in at global precedence. This lets a provider ship organization defaults without you editing your local config.

Shell tool​

The built-in shell tool runs commands with a default timeout of 2 minutes (120000 ms); the model is told this advertised limit in its prompt and can request a larger per-command timeout when a command is expected to run longer.

TUI notifications, attention sounds, and prompt sizing​

TUI-specific settings live in tui.json (global at ~/.config/neusiscode/tui.json, or per-project in a .neusiscode/ directory) — not in neusiscode.json.

Attention (notifications & sounds)​

Desktop notifications and attention sounds are opt-in and disabled by default. Set attention.enabled to true to turn them on:

{
"attention": {
"enabled": true,
"notifications": true,
"sound": true,
"volume": 0.4
}
}
KeyTypeDefaultMeaning
enabledbooleanfalseMaster switch. Nothing fires unless this is true.
notificationsbooleantrueShow desktop notifications (when enabled).
soundbooleantruePlay attention sounds (when enabled).
volumenumber0.4Sound volume, 0–1.
sound_packstringbuilt-in defaultId of the sound pack to use.
soundsobject—Per-event sound file overrides (default, question, permission, error, done, subagent_done).

Notifications fire on session completion, errors, and when a question or permission prompt needs your input.

Prompt sizing​

The home-screen prompt box can be sized via prompt. The width can scale with the terminal ("auto") or be capped at a fixed column count:

{
"prompt": {
"max_height": 12,
"max_width": "auto"
}
}
KeyTypeMeaning
max_heightpositive integerMaximum prompt textarea height.
max_widthpositive integer, or "auto"Fixed column cap, or "auto" to scale with terminal width.