Onicode uses Claude Code's login and configuration. Start with the default provider for one account; provider setup covers installation and shared provider settings.
Use a separate Claude config directory for each account. This also works for named presets that need different Claude settings or a router connection.
Keep your existing account in the default directory. On the environment's machine, create the second login:
mkdir -p ~/.claude_personal
CLAUDE_CONFIG_DIR=~/.claude_personal claude auth loginAdd another Claude instance in Settings > Providers:
| Instance | Binary path | CLAUDE_CONFIG_DIR path |
|---|---|---|
| Claude Work | claude |
Leave empty |
| Claude Personal | claude |
~/.claude_personal |
On mobile, tap Add Claude account in Settings > Providers and enter a name and the config folder. The login itself still happens on the environment's machine.
An empty config-directory setting uses Claude Code's normal configuration. The
custom setting changes CLAUDE_CONFIG_DIR, leaving HOME and the system keychain
location intact. Use the same variable for the login command. Setting HOME
instead can put credentials where this provider will not find them.
Check the account reported in provider settings after signing in. Existing threads can switch only between Claude instances with the same config directory. Separate account directories stay isolated, including their local conversation state. Claude does not have Codex's shared-home and shadow-home arrangement.
For presets that differ only in API keys or endpoints, use the instance's Environment variables. Variable assignments do not belong in Launch arguments.
File paths in the --settings and --append-system-prompt-file launch arguments
can start with ~ for the home directory of the machine running Onicode. Any
other relative path is read from the thread's project folder, or its worktree.
Claude Code's verbose mode can stay enabled when you use Claude for text generation, including thread titles, branch names, commit messages, and pull request descriptions. On a remote connection, Onicode uses the Claude configuration on the connected server.
Set Auto-compact after in the Claude provider settings to an integer of at
least 100000. For example, 300000 asks Claude to summarize at about
300,000 tokens. This changes when compaction happens, not the model's context
window. Leave it empty for Claude Code's default.
You can also send /compact in an existing conversation. Claude Code also
compacts automatically. To see what fills the context window, see
Context, MCP servers and Claude Code settings.
When you return to a large thread after Claude's prompt cache expires, a Compact chip with the thread's token count shows next to the send button. While it is on, Enter summarizes the history first, then sends your message. Click the chip to switch it to Keep and keep the full history for that message. The mobile app shows the same chip, labelled with the token count: tap it to keep the full history for that message. While a scheduled task's fresh session is the latest one, your message goes back to your own conversation without summarizing. The cache lasts about an hour on a Claude subscription and 5 minutes with an API key, Bedrock, or Vertex. See commands and skills for using composer commands.
Compact idle threads in Settings > Providers > Advanced controls this for threads over 200,000 tokens. Each Claude provider's settings can override it:
- When you return shows the Compact chip described above. This is the default.
- Before the cache expires (beta) tries to compact an idle thread shortly before its
prompt cache expires, while the history is still cached.
The compaction appears in the thread as a
/compactturn sent by Onicode. If the window is missed, such as when you enable this mode after the cache has expired or the server restarts before compaction runs, it falls back to When you return. Switch the chip to Keep to keep the full history for that message. - Never skips idle compaction and Claude's resume prompt. Auto-compact after still applies, and you can still compact by hand.
Send /context in a thread to see what fills Claude's context window by category: the
system prompt, tools, MCP tools, memory files such as CLAUDE.md, skills, custom agents,
and the conversation. Expand a category to see what it holds. On desktop, select a memory
file to open it. On desktop, select the Context row in the thread details card to show the
same breakdown under it.
Send /mcp to see the MCP servers the thread's Claude session loaded, their status and
tools. From there you can reconnect a server, turn it off or on, and sign in to or out of
a remote server. Turning a server off and signing out are saved in Claude Code's own
settings, so they also apply when you use Claude Code outside Onicode. When signing in from another device, the browser can end
on a page that fails to load. Copy that page's address and paste it in Onicode to finish.
/status, /agents, /skills, /memory, /output-style, /hooks, /permissions and
/plugin show what the session is using: its version and account, subagents, skills,
memory files, output styles, hooks, permission rules, and installed plugins and
marketplaces. These views are read-only. To change a setting, ask the agent to do it.
All of these views read the thread's running Claude session, so send a message first if
the thread has none. A command followed by arguments, such as /mcp reconnect github,
goes to Claude as a normal command.
If your Claude subscription runs out of usage mid-turn, the thread shows which limit was reached and the remaining wait when Claude provides a reset time. Claude Code holds the turn until that window reopens, so it can keep showing as working. Wait for the reset, or stop the turn and continue later. The warning's timestamp shows when the displayed wait started.
Steering follows Claude Code. A steer waits until Claude finishes the tool calls it is running, then Claude reads it in the same turn. The message shows as unread until then. Subagents do not hold it up: any subagent the turn is waiting on moves to the background and keeps running, including one that starts after you send the steer.
A waiting steer shows an hourglass. To have Claude read it at once, select the arrow
beside the hourglass (Send now), or press the
steer shortcut (thread.steerQueuedMessage) when no queued message can take it. Running
commands, subagents and MCP calls move to the background and keep running. When nothing
can move, Claude stops the step it is on and continues from your message.
If you press Stop, a steer Claude had not read is sent as the next turn, and messages you queued stay held. Press Stop again to stop that turn too. If Claude drops the steer before reading it, the message is also sent as the next turn, after any messages queued before it. If Claude exits or the server restarts first, the message waits in the queue in that same place until you resume it.
Results and questions from delegated tasks reach Claude the same way. A question Claude had not read is queued again. A task result Claude had not read is queued again too, unless you press Stop, which discards it.
Claude skills come from the config directory's skills folder and the project's
.claude/skills folder. If both define the same name, the config-directory copy
wins. Skills disabled in Claude's settings do not appear in the composer.
Use $ in the composer to select a skill. Enabled installed Claude plugins also
contribute skills under names such as plugin:review. Skills marked disable-model-invocation
can still be started by you. Invoke those one per message: Claude directly runs
only the last named skill and may try to start earlier ones through its Skill
tool, which refuses skills reserved for manual invocation.
To show Claude task lists in the desktop app, add
CLAUDE_CODE_ENABLE_TODO_TOOLS=1 under Variables in the Claude instance's
Environment section in Settings > Providers. Each update shows as a Tasks
row in the thread; open it to see every step.
Auto on a Claude thread is Claude Code's own auto mode. disableAutoMode in Claude's managed,
user, or project settings turns it off: Onicode then shows Auto as unavailable in that project,
and a thread already set to it asks about each action. See Permission modes.
When an MCP server you added to Claude needs you to sign in, the thread shows a notice with Sign in, once per session; on mobile, tap the notice. Approve access on the page it opens. Your browser then goes to a page that may not load, especially when Claude runs on another machine: copy that page's address, paste it into Onicode, and choose Finish sign-in. Claude keeps the sign-in and reconnects the server. Connectors you added on claude.ai are signed in on claude.ai, so Onicode doesn't ask about them. Signing in needs permission to manage providers.
Claude threads can use the Claude in Chrome extension, which works in your own
Chrome with its sign-ins. Onicode sessions load it only when asked: add --chrome
to Launch arguments in the Claude instance's settings in Settings > Providers.
It applies to sessions that start after you save. Set up the extension as you would
for Claude Code first; see Claude Code's Chrome guide.
The instance must be signed in with /login on a direct Anthropic plan. Instances
that use an API key or a claude setup-token token don't get it, even with
--chrome, and neither do third-party providers such as Amazon Bedrock. Claude Code
doesn't support it in WSL.
Create a Claude instance with its own config directory, such as
~/.claude_openrouter, and keep Binary path set to claude. In that instance's
Environment variables, use:
| Variable | Value |
|---|---|
ANTHROPIC_BASE_URL |
https://openrouter.ai/api |
ANTHROPIC_AUTH_TOKEN |
Your OpenRouter API key, marked Sensitive |
ANTHROPIC_API_KEY |
An explicitly empty value |
If that Claude config directory has a cached Anthropic login, run /logout in a
Claude Code session using that directory before starting the router setup. Cached
login credentials can conflict with the router token.
Select the model you want in Onicode. For an OpenRouter model outside the built-in
list, open that Claude instance in Settings > Providers and add its full model
ID with Add custom model. Then select it in the chat model picker.
ANTHROPIC_DEFAULT_*_MODEL variables map Claude Code aliases such as sonnet; they
do not replace the explicit model ID selected in Onicode. Custom models may have
fewer effort, thinking, or context controls than built-in models.
Verify the model used in OpenRouter's activity dashboard. For current compatibility requirements, use the OpenRouter Claude Code guide.
A local router uses an ordinary Claude provider instance. Give it a separate config directory and put the router's endpoint and credential variables in that instance's Environment variables. The router must run where the environment can reach it. Follow the Claude Code Router instructions for its installation and routing configuration.