Skip to content

Named provider instances: work/personal accounts, isolated config dirs, OpenRouter #453

Closed

Description

@currentbits

What T3 Code and Orca do

T3 Code treats each Claude (and Codex) setup as a named provider instance, not a singleton (docs):

  • Work vs personal Claude accounts via a separate CLAUDE_CONFIG_DIR per instance. T3 never sets HOME; it points Claude Code at that directory so the system keychain stays intact.
  • A thread can only switch to another Claude instance that shares the same config dir. A different dir is a different environment.
  • OpenRouter and Claude Code Router are just more named Claude instances: isolated config dir + per-instance env (ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN marked sensitive, empty ANTHROPIC_API_KEY so the Anthropic login is not reused).
  • Settings show the signed-in email per instance (blurred until clicked) so you can tell which account you are about to spend.

Orca ships the same idea as an account switcher with usage and rate-limit resets, and hot-swaps Codex accounts without re-logging in (onorca.dev).

Solenta today

agentProfiles (electron/store.js parseAgentProfile) are { id, name, provider, model, reasoningEffort, permissionMode }. They pick a model and a permission ladder. They cannot:

  • point a Claude spawn at a second CLAUDE_CONFIG_DIR
  • attach per-instance environment (base URL, router token)
  • represent two logged-in accounts of the same provider

There is one implicit Claude home and one implicit Codex login for the whole app.

Why it matters

Anyone with a work Max plan and a personal account, or anyone routing Claude Code through OpenRouter / CCR, cannot use Solenta without clobbering their default login. T3 documented this because it is the first thing dual-account users hit.

Scope suggestion

Promote a provider instance (binary path, config dir, env, sensitive-secret storage) and keep today's agent profile as a thin preset over an instance. Do not let a live thread jump across config dirs — T3 is right that Claude state is not shareable that way.

Related: #188 (per-project env), #416 (enterprise env profile), #438 (settings as code).

Activity

  1. added
    enhancement
    plan:todo
    on Aug 18, 2026
  2. currentbits commented on Aug 18, 2026

    @currentbits
    OwnerAuthor

    Round 20: Claude Code 2.1.234 added CLAUDE_CODE_PROJECT_DIR_NAME. Quote from the changelog:

    hosts that give each session its own config directory can choose a short name for the per-project transcript directory

    That is an orchestrator-facing knob aimed at us. When named instances land, set this on every spawn that uses an isolated CLAUDE_CONFIG_DIR, or Claude's per-project transcript dirs will collide or grow unreadable hashes. Pair with the instance's display name.

  3. currentbits commented on Aug 18, 2026

    @currentbits
    OwnerAuthor

    Round 21: OpenCode has the same isolated-home knob as Claude.

    `OPENCODE_CONFIG_DIR=/path/to/my/config-directory opencode run "…"`

    Named instances must set this for OpenCode the same way they set `CLAUDE_CONFIG_DIR` / `CLAUDE_CODE_PROJECT_DIR_NAME`. One field on the instance ("config dir"), mapped per provider.

  4. currentbits commented on Aug 18, 2026

    @currentbits
    OwnerAuthor

    Round 23 intel: Amp's Dial now adapts to what you already pay for (2026-08-10): link a ChatGPT subscription and the low/medium/high effort levels run on that subscription's quota. This is the routing layer moving underneath the user's existing subscriptions instead of selling a parallel meter. For named provider instances it means the instance config should capture not just credentials but which subscription/meter backs it, so the effort picker and the spend meter can attribute cost to the right plan. It also normalizes the idea that effort levels are subscription-relative, not absolute.

  5. currentbits commented on Aug 18, 2026

    @currentbits
    OwnerAuthor

    Round 25 demand-side validation: multi-account is one of the loudest requests across three vendor repos right now. Claude Code: "manage multiple Claude accounts with easy switching" (#18435, 166 comments) and "multiple Connector accounts, same connector, different accounts" (#27302, 231 comments). Codex: "first-class multi-account auth via --auth-profile" (openai/codex#4432) and "multiple named accounts per app/connector" (#20500). The work/personal split is a daily pain for exactly Solenta's target user. If Solenta ships named instances before the vendors do, it is a genuine headline feature, not a checkbox.

  6. currentbits commented on Aug 18, 2026

    @currentbits
    OwnerAuthor

    Round 26 demand signal: "Make Warp work with Local Language Models (Ollama)" is the #1 open request on Warp's tracker (Warp#4339, 141 comments), and Cline's tracker is full of LM Studio / OpenAI-compatible endpoint asks. Named instances must therefore treat an OpenAI-compatible localhost endpoint (Ollama, LM Studio, llama.cpp server) as a first-class instance type, not a bolt-on: per-instance base URL + optional key, model discovery from /v1/models, and honest capability flags (most local models have no native permission or plan protocols, so they route through the #458 generic path with reduced guarantees). Local models + local-first orchestrator is the full privacy story.

  7. currentbits commented on Aug 18, 2026

    @currentbits
    OwnerAuthor

    Round 27: Orca has now shipped both sides of this: a Claude account switcher (hot swap between multiple Claude accounts) and Codex multi-account homes (system default vs isolated managed accounts), with nested subagent attribution per account. Combined with the demand data from round 25 (400+ comments across vendor trackers), multi-account is no longer just demanded; a direct competitor ships it. The isolated-managed-home approach (separate config dirs per account, agent never sees the other account's credentials) is the right reference design.

  8. added a commit that references this issue on Oct 6, 2026
  9. currentbits commented on Oct 9, 2026

    @currentbits
    OwnerAuthor

    Gap pass #1532 checked this against main @24d3c36b (v0.24.0). #1516 shipped named instances for Claude and Codex (electron/providerInstances.js): a per-instance CLAUDE_CONFIG_DIR/CODEX_HOME, sealed secrets, a Settings UI, and a forced fresh session when you switch instance.

    Still missing, so keeping this open:

    • OpenCode instances (OPENCODE_CONFIG_DIR).
    • CLAUDE_CODE_PROJECT_DIR_NAME is never set.
    • A local OpenAI-compatible endpoint type (Ollama, LM Studio).
    • Showing the signed-in account email.
    • Spend broken down per subscription; today it is per instance only.
  10. added
    plan:doing
    plan:done
    and removed
    plan:todo
    plan:doing
    on Oct 9, 2026
  11. currentbits commented on Oct 9, 2026

    @currentbits
    OwnerAuthor

    Shipped in 0.24.0 (#1516): named provider instances with their own config dir (CLAUDE_CONFIG_DIR/CODEX_HOME) and env (electron/providerInstances.js), so OpenRouter works through env. Closing in the 2026-10-09 board cleanup (#1532).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementplan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions