-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat(ai): add Command Code provider #3298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| /** Command Code login flow (API key paste against the OpenAI-compatible Provider API). */ | ||
| import { createApiKeyLogin } from "./api-key-login"; | ||
| import type { OAuthLoginCallbacks } from "./oauth/types"; | ||
| import type { ProviderDefinition } from "./types"; | ||
|
|
||
| export const loginCommandCode = createApiKeyLogin({ | ||
| providerLabel: "Command Code", | ||
| authUrl: "https://commandcode.ai/studio/api-keys", | ||
| instructions: "Create an API key in Command Code Studio (Provider plan) and copy it", | ||
| promptMessage: "Paste your Command Code API key", | ||
| placeholder: "sk-...", | ||
| validation: { | ||
| kind: "models-endpoint", | ||
| provider: "commandcode", | ||
| modelsUrl: "https://api.commandcode.ai/provider/v1/models", | ||
| }, | ||
| }); | ||
|
|
||
| export const commandCodeProvider = { | ||
| id: "commandcode", | ||
| name: "Command Code", | ||
| login: (cb: OAuthLoginCallbacks) => loginCommandCode(cb), | ||
| } as const satisfies ProviderDefinition; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,6 +14,7 @@ import { | |
| anthropicModelManagerOptions, | ||
| cerebrasModelManagerOptions, | ||
| cloudflareAiGatewayModelManagerOptions, | ||
| commandCodeModelManagerOptions, | ||
| deepseekModelManagerOptions, | ||
| firepassModelManagerOptions, | ||
| fireworksModelManagerOptions, | ||
|
|
@@ -95,6 +96,13 @@ export const CATALOG_PROVIDERS = [ | |
| createModelManagerOptions: (config: ModelManagerConfig) => cloudflareAiGatewayModelManagerOptions(config), | ||
| catalogDiscovery: { label: "Cloudflare AI Gateway" }, | ||
| }, | ||
| { | ||
| id: "commandcode", | ||
| defaultModel: "deepseek/deepseek-v4-pro", | ||
| envVars: ["COMMANDCODE_API_KEY"], | ||
| createModelManagerOptions: (config: ModelManagerConfig) => commandCodeModelManagerOptions(config), | ||
| catalogDiscovery: { label: "Command Code", oauthProvider: "commandcode" }, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This Useful? React with 👍 / 👎. |
||
| }, | ||
| { | ||
| id: "cursor", | ||
| defaultModel: "claude-4.6-opus-high", | ||
|
|
||
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.
This same Command Code note is already under
[Unreleased], but this copy was inserted under the already-released[15.1.4] - 2026-05-19section; the repo changelog rules say released sections are immutable. Leaving it here rewrites historical release notes and makes the provider appear to have shipped in an old release, so this duplicate should be removed from the released section.Useful? React with 👍 / 👎.