Skip to content

Add OpenRouter Kimi K3 support - #70

Merged
rgarcia merged 6 commits into
mainfrom
hypeship/openrouter-kimi-k3
Aug 3, 2026
Merged

Add OpenRouter Kimi K3 support#70
rgarcia merged 6 commits into
mainfrom
hypeship/openrouter-kimi-k3

Conversation

@rgarcia

@rgarcia rgarcia commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

summary

  • add OpenRouter Kimi K3 model resolution, auth, listing, and streaming support
  • share Kimi capability metadata across direct Moonshot and OpenRouter
  • preserve native-provider validation and make harness refs resolve through supplied Models
  • prepare @onkernel/cua-ai 0.9.0, @onkernel/cua-agent 0.9.0, and @onkernel/cua-cli 0.7.0 release metadata

tests

  • npm run typecheck
  • npm test --workspace @onkernel/cua-ai
  • npm test --workspace @onkernel/cua-agent
  • npm test --workspace @onkernel/cua-cli

Note

Medium Risk
Touches model resolution, tool-catalog compatibility, and harness streaming paths; behavior changes are mostly additive but incorrect capability metadata could reject or mis-serialize tools for new models.

Overview
Adds OpenRouter as a CUA provider for openrouter:moonshotai/kimi-k3, with OPENROUTER_API_KEY auth, model listing, and the same browser-primitives-only default catalog as direct Moonshot (no browser_act).

@onkernel/cua-ai 0.9.0 introduces CuaModelCapabilities on model annotations and cuaModelCapabilities(), so tool-catalog validation (complex/large schemas, serialized state-mutating calls) is driven by per-model metadata instead of provider-wide allowlists. Kimi K3 shares capability metadata across moonshotai:kimi-k3 and the OpenRouter route.

CuaAgentHarness resolves string model refs through the injected Models collection (with CUA annotation gating) during construction and setModel(); CuaToolManager uses the same resolver when compiling catalogs from refs.

CLI 0.7.0 wires OpenRouter into cua models -p openrouter, env docs, and defaultInteractionTools. Example/provider-matrix tests cover both Kimi transports.

Reviewed by Cursor Bugbot for commit 5e355c7. Bugbot is set up for automated code reviews on this repo. Configure here.

@rgarcia

rgarcia commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

bugbot run

Comment thread packages/cli/src/harness.ts
Comment thread packages/ai/src/models.ts
@rgarcia

rgarcia commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

bugbot run

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit c364c01. Configure here.

@rgarcia

rgarcia commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

bugbot run

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 10a9808. Configure here.

@rgarcia

rgarcia commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

@cursor review

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 10a9808. Configure here.

@rgarcia
rgarcia marked this pull request as ready for review August 3, 2026 17:24
@rgarcia

rgarcia commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

bugbot run

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 5e355c7. Configure here.

@rgarcia
rgarcia merged commit 0c7bd59 into main Aug 3, 2026
6 checks passed
@rgarcia
rgarcia deleted the hypeship/openrouter-kimi-k3 branch August 3, 2026 17:42
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.

1 participant