Gonka x MiMoCode #1339
Dankosik
started this conversation in
Show and Tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
GonkaGate x MiMoCode
Use this package when you already have
mimoinstalled and want GonkaGateconfigured as a MiMoCode custom provider without editing config files by hand.
After setup, keep using plain
mimo.At a glance
@gonkagate/mimo-code-setupnpx @gonkagate/mimo-code-setupmimogonkagatehttps://api.gonkagate.com/v1GET https://api.gonkagate.com/v1/modelschat_completions@mimo-ai/cli0.1.0, checked on June 11, 2026Quick start
Interactive setup:
Project scope with non-interactive defaults:
Read the API key from stdin:
Pin the model explicitly:
Then run:
Requirements
mimoonPATH@mimo-ai/cli0.1.0>=22.14.0gp-...keyThe installer stops on MiMoCode versions older than
0.1.0. It also blocksnewer MiMoCode versions until this setup package has been audited against that
upstream version.
What the installer does
gp-...key from a hidden prompt,GONKAGATE_API_KEY, orstdin.
/v1/models.provider.gonkagate.Files and config
The installer uses MiMoCode's resolved paths. It does not assume a single global
config filename.
mimocode.jsonc,mimocode.json, orconfig.jsonprovider.gonkagate;modelandsmall_modelforuserscopemimocode.jsonc.mimocode/mimocode.jsonmodelandsmall_modelforprojectscope~/.gonkagate/mimo-code/api-key~/.gonkagate/mimo-code/install-state.json~/.gonkagate/mimo-code/backupsFor
projectscope, the repository-local config only selects the model:{ "model": "gonkagate/moonshotai/kimi-k2.6", "small_model": "gonkagate/moonshotai/kimi-k2.6" }That file does not contain the raw API key or the path to the secret file.
Scope behavior
usermodel,small_modelprojectmodel,small_modelonlyThe secret binding always stays in user-level config:
Provider shape
The user-level provider entry includes the SDK package, base URL, file-backed
API-key reference, cache-key setting, and the model map generated from
/v1/models:{ "provider": { "gonkagate": { "npm": "@ai-sdk/openai-compatible", "name": "GonkaGate", "options": { "baseURL": "https://api.gonkagate.com/v1", "apiKey": "{file:~/.gonkagate/mimo-code/api-key}", "setCacheKey": false, }, "models": { "<model-id-from-/v1/models>": { "name": "<model-id-from-/v1/models>", "limit": { "context": 0, "output": 0, }, }, }, }, }, }Setup flow
mimo --version.GONKAGATE_API_KEY, or stdin.GET https://api.gonkagate.com/v1/models.provider.gonkagate.modelsfrom the catalog response.userorprojectscope.~/.gonkagate/mimo-code/api-key.mimo models gonkagate.MIMOCODE_CONFIG_CONTENT.Setup only succeeds when MiMoCode's resolved config matches the expected
GonkaGate provider, model, base URL, transport, and API-key binding.
The installer captures
mimo --pure debug configinternally, but it neverprints raw resolved config. That output can include substituted secret values.
Model selection
The model picker is not hardcoded. It comes from the authenticated GonkaGate
catalog request:
Every returned model id becomes a key under
provider.gonkagate.models.Use the full GonkaGate slug in MiMoCode model refs. For Kimi:
Do not shorten it to:
MiMoCode treats the first path segment as the provider id and passes the rest
as the model id.
Current MiMoCode workflow validation exists for:
Other models can still appear in the picker when GonkaGate returns them.
Catalog availability and MiMoCode workflow validation are separate claims.
What
/v1/modelsprovesGET /v1/models/v1/responsesis supportedUse
mimoafter setup to test the actual coding workflow.Failure behavior
The installer fails closed. It reports a blocker instead of leaving behind a
silent partial setup when:
mimois missing/v1/modelsis unavailableCurrent contract
@gonkagate/mimo-code-setupnpx @gonkagate/mimo-code-setupmimo-code-setupgonkagate-mimo-codemimo@mimo-ai/cli0.1.0, checked on June 11, 2026gonkagate@ai-sdk/openai-compatiblechat_completionshttps://api.gonkagate.com/v1GET https://api.gonkagate.com/v1/modelsprovider.gonkagate.options.apiKey = {file:~/.gonkagate/mimo-code/api-key}provider.gonkagate.options.setCacheKey = falseNon-goals
This package does not:
--api-keyflag.envfilesauth.jsonin v1/v1/responsessupport before an explicit migrationLinks
@gonkagate/mimo-code-setupBeta Was this translation helpful? Give feedback.
All reactions