GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(core): add a `configDir` setting to the Claude Agent provider by Tarquinen · Pull Request #62514 · anomalyco/opencode

Conversation

@Tarquinen

@Tarquinen Tarquinen commented Nov 7, 2026 •
edited by opencodejr Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Issue for this PR

Closes #60793

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds a configDir setting to the Claude Agent provider, so it can use a Claude config folder other than the default.

Check the spec for design notes.

How did you verify your code works?

  • bun run check from the repo root, and the Claude Agent tests in packages/core.
  • Ran this branch's server against real Claude Code with configDir set to a second logged-in folder. A chat, its generated title, a fork and a follow-up turn all ran in that folder.

Screenshots / recordings

N/A, not a UI change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Added by the opencode bot (AI-generated).

Related: #58141, #58214

Public API: adds settings.configDir (maps to CLAUDE_CONFIG_DIR) to the claude-agent provider and model settings (backwards compatible)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

rimless-casualty, thomasmol, and ekaterina145mira-crypto reacted with thumbs up emoji davdroman reacted with hooray emoji
All reactions
  • 👍 3 reactions
  • 🎉 1 reaction
@Tarquinen
feat(core): add Claude Agent config folders and account rotation
b40bbb6
@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels Nov 7, 2026
@github-actions github-actions Bot mentioned this pull request Nov 7, 2026
📊 AI CLI 工具社区动态日报 2026-11-07 96loveslife/big_model_radar#757
Open
@adamdotdevin adamdotdevin mentioned this pull request Nov 8, 2026
feat(core): report Claude plan usage to OpenCode Console #62788
Closed
3 of 6 tasks
@Tarquinen
Merge branch 'dev' into claude-agent-config
18e35b9
@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels Nov 9, 2026
@Tarquinen
Merge branch 'dev' into claude-agent-config
78b8a2b
@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels Nov 9, 2026
@playday3008 playday3008 mentioned this pull request Nov 11, 2026
feat(core): rotate Claude Agent accounts with selectable strategies #63308
Closed
3 of 6 tasks
This was referenced Nov 18, 2026
chore(core): merge dev into claude-agent-config #64579
Closed
feat(core): switch Claude Agent accounts by config folder #64580
Closed
Tarquinen added 2 commits November 18, 2026 17:55
@Tarquinen
Merge remote-tracking branch 'origin/dev' into claude-agent-config
c0a9da8
# Conflicts:
#	packages/core/src/plugin/provider/claude-agent/claude/sessions.ts
#	packages/core/src/plugin/provider/claude-agent/claude/status.ts
@Tarquinen
fix(core): keep the default Claude folder's state, a stable model ali…
68ddd02
…as and the opencode entrypoint label

Ports three fixes from the standalone plugin:

- A configDir of ~/.claude runs without CLAUDE_CONFIG_DIR, so Claude Code keeps its state in ~/.claude.json and existing sessions keep their record.
- A family's current model is listed under its alias (fable) rather than the version Claude Code reports, which changes with each release.
- Requests are labelled with CLAUDE_CODE_ENTRYPOINT=opencode.
@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels Nov 18, 2026
@github-actions

github-actions Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@deinspanjer deinspanjer mentioned this pull request Nov 19, 2026
claude-agent: model list flips between fable and claude-fable-5-2, so sessions on the dropped id fail #64746
Closed
Tarquinen added 2 commits November 19, 2026 18:22
@Tarquinen
Merge remote-tracking branch 'origin/dev' into claude-agent-config
4b9fcf9
@Tarquinen
chore(core): drop the entrypoint label in favor of #61073
d08283b
@Tarquinen
Tarquinen force-pushed the claude-agent-config branch from e4cd61a to d08283b Compare November 19, 2026 23:32
Tarquinen added 7 commits November 19, 2026 19:01
@Tarquinen
test(core): use platform paths for Claude config folders and drop unu…
5a960cd
…sed exports
@Tarquinen
Merge remote-tracking branch 'origin/dev' into claude-agent-config
7297efa
@Tarquinen
Merge remote-tracking branch 'origin/dev' into claude-agent-config
3f08f28
@Tarquinen
fix(core): keep every listed Claude model ID working when Claude Code…
3488d5a
… renames a model
@Tarquinen
refactor(core): simplify the Claude model list merge, trim comments a…
96334ac
…nd tests
@Tarquinen
docs(core): match the spec to the model list merge
c6656ca
@Tarquinen
chore(core): move account rotation, model IDs and the billing hint to…
aede45e
… their own PRs
@Tarquinen Tarquinen mentioned this pull request Nov 20, 2026
feat(core): add Claude Agent usage control #65035
Merged
3 of 6 tasks
Tarquinen added 4 commits November 19, 2026 20:55
@Tarquinen
fix(core): give a shell-neutral login instruction for a Claude config…
dbce7f2
… folder
@Tarquinen
fix(core): show the login command for the user's OS
01286a9
@Tarquinen
Merge remote-tracking branch 'origin/dev' into claude-agent-config
18aa146
@Tarquinen
test(core): use the API error recording in the config folder test
a40e544
@Tarquinen
Tarquinen marked this pull request as ready for review November 20, 2026 02:10
opencodejr[bot]
opencodejr Bot reviewed Nov 20, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change looks sound and works as described. Tested in source mode: transcript lookup, fork and delete all ran in the configured folder through the worker, without touching the server's own environment. The Claude Agent tests pass (88/88). Not checked: a real Claude Code login or the compiled binary.

Public API: adds the settings.configDir key for the claude-agent provider and its models, mapped to CLAUDE_CONFIG_DIR, with a leading ~/ expanded. It is additive and backwards compatible. Existing session records keep their keys; only sessions on a non-default folder get a new record key.

One concern is worth fixing, noted inline: a chat in a per-model folder still updates the provider-wide Claude status.

Related: #58141, #58214

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread packages/core/src/plugin/provider/claude-agent/claude/sessions.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@Tarquinen
fix(core): keep the provider's status when a model uses its own Claud…
b8c33de
…e folder
opencodejr[bot]
opencodejr Bot reviewed Nov 20, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new commit addresses the earlier status concern. Chats in a model's own configDir no longer replace the provider's login status, pricing or model list, and the updated test covers this. Claude Agent tests pass (88/88).

Public API: unchanged since the last review. It still adds settings.configDir (maps to CLAUDE_CONFIG_DIR) for the provider and its models, which is backwards compatible.

No new concerns.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Tarquinen Tarquinen changed the title feat(core): add Claude Agent config control feat(core): add a configDir setting to the Claude Agent provider Nov 20, 2026
@Tarquinen
Tarquinen merged commit 789f310 into dev Nov 20, 2026
26 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@Tarquinen
Tarquinen deleted the claude-agent-config branch November 20, 2026 02:35
@Edo771977 Edo771977 mentioned this pull request Nov 20, 2026
chore: merge upstream/dev into the fork Edo771977/opencode#94
Merged
@deinspanjer deinspanjer mentioned this pull request Nov 20, 2026
feat(core): switch Claude Agent accounts by config folder #65226
Open
3 of 6 tasks
@BrewTestBot BrewTestBot mentioned this pull request Nov 23, 2026
opencode 2.4.0 Homebrew/homebrew-core#327368
Merged
@amrkmn amrkmn mentioned this pull request Nov 23, 2026
opencode 2.4.0 amrkmn/homebrew-tap#1251
Closed
1 task
@github-actions github-actions Bot mentioned this pull request Nov 23, 2026
feat: opencode release v2.4.0 sprisa/opencode-server#95
Merged
@kobzevvv kobzevvv mentioned this pull request Nov 24, 2026
chore(upstream): порт v2.4.1 — 67 в порт, 38 на решение gpt-mem/opencode-mem#223
Open
4 tasks
@scottames-github-bot scottames-github-bot Bot mentioned this pull request Nov 27, 2026
chore(deps): update ⬆️ mise-packages scottames/dots#1181
Merged
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@opencodejr opencodejr[bot] opencodejr[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Claude Agent: configDir setting to use another Claude Code login

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@Tarquinen
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.