Skip to content

feat(engines): editable accounts across engines + OpenCode provider overhaul#429

Merged
ArgaFairuz merged 3 commits into
mainfrom
feat/engine-account-editing
Jul 17, 2026
Merged

feat(engines): editable accounts across engines + OpenCode provider overhaul#429
ArgaFairuz merged 3 commits into
mainfrom
feat/engine-account-editing

Conversation

@ArgaFairuz

@ArgaFairuz ArgaFairuz commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Let every engine account be edited beyond its name, rework the OpenCode
provider UI, and fix authentication for OpenAI-compatible providers whose
endpoint needs injected credentials.

OpenCode providers:

  • Add custom OpenAI-compatible providers with an optional (blank) API key,
    edit them (name, slug, base URL, models) in a modal — restricted to custom
    providers since catalog entries are defined upstream.
  • Manage credentials at the account level: each account edits the provider's
    real secret fields (e.g. Cloudflare Workers AI shows CLOUDFLARE_ACCOUNT_ID
    and CLOUDFLARE_API_KEY), all-optional but filled together; add multiple
    accounts per provider (catalog and custom).
  • Move context/output limits onto each model row instead of one provider-wide
    default (legacy provider-level limits still honored as a fallback).
  • Fix 401s for api_url providers: inject the active account's apiKey into the
    provider config and substitute ${VAR} placeholders (e.g. the account id in
    Cloudflare's base URL), authenticating model discovery too.
  • UI polish: brighter "Fetch from /v1/models" button, normal-font inputs,
    Ollama/9router placeholders.

Per-engine account editing:

  • Copilot (token), Qwen (API key + preset), and Codex (API key) accounts can
    update their credential in place, not just rename.
  • OAuth accounts (Claude Code, Codex ChatGPT) gain a Re-authenticate action
    that reruns the login flow and updates the existing account in place via a
    new optional reauthAccountId on the setup flow.

rust142 and others added 3 commits July 15, 2026 12:52
Add full UI for adding, editing, and managing custom OpenAI-compatible
providers (manual or auto-discovered models, context/output limits, aliases).
Update backend with updateProvider, fetch-models routes, and dynamic config
injection. Improves local LLM/bespoke endpoint support and DX.
…verhaul

Let every engine account be edited beyond its name, rework the OpenCode
provider UI, and fix authentication for OpenAI-compatible providers whose
endpoint needs injected credentials.

OpenCode providers:
- Add custom OpenAI-compatible providers with an optional (blank) API key,
  edit them (name, slug, base URL, models) in a modal — restricted to custom
  providers since catalog entries are defined upstream.
- Manage credentials at the account level: each account edits the provider's
  real secret fields (e.g. Cloudflare Workers AI shows CLOUDFLARE_ACCOUNT_ID
  and CLOUDFLARE_API_KEY), all-optional but filled together; add multiple
  accounts per provider (catalog and custom).
- Move context/output limits onto each model row instead of one provider-wide
  default (legacy provider-level limits still honored as a fallback).
- Fix 401s for api_url providers: inject the active account's apiKey into the
  provider config and substitute ${VAR} placeholders (e.g. the account id in
  Cloudflare's base URL), authenticating model discovery too.
- UI polish: brighter "Fetch from /v1/models" button, normal-font inputs,
  Ollama/9router placeholders.

Per-engine account editing:
- Copilot (token), Qwen (API key + preset), and Codex (API key) accounts can
  update their credential in place, not just rename.
- OAuth accounts (Claude Code, Codex ChatGPT) gain a Re-authenticate action
  that reruns the login flow and updates the existing account in place via a
  new optional reauthAccountId on the setup flow.
main's opencode PR (#424) is the squash-merge of this branch's own 467ca9a,
so the five conflicting opencode files were resolved in favour of our version
(a strict superset). The new preview (#422) and subagent-trim (#425) work
merged cleanly.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@ArgaFairuz
ArgaFairuz merged commit 976cd54 into main Jul 17, 2026
1 check passed
@ArgaFairuz
ArgaFairuz deleted the feat/engine-account-editing branch July 17, 2026 02:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants