Skip to content
This repository was archived by the owner on Aug 3, 2026. It is now read-only.

persist Cursor provider config to opencode.json - #2

Open
falkondev wants to merge 1 commit into
PoolPirate:mainfrom
falkondev:update
Open

falkondev wants to merge 1 commit into
PoolPirate:mainfrom
falkondev:update

Conversation

@falkondev

Copy link
Copy Markdown

After successful Cursor auth and model discovery, write the provider entry (name, API base URL, and discovered models) to the user's opencode configuration. The config path is resolved dynamically:

  • If /.opencode/opencode.json already exists, it is updated in-place
  • Otherwise, the global config at /opencode/opencode.json (defaulting to ~/.config/opencode/opencode.json) is used

After successful Cursor auth and model discovery, write the provider entry (name, API base URL, and discovered models) to the user's opencode configuration. The config path is resolved dynamically:
- If <project>/.opencode/opencode.json already exists, it is updated in-place
- Otherwise, the global config at /opencode/opencode.json (defaulting to ~/.config/opencode/opencode.json) is used
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant