mcode 0.4.12, npm install, Linux, Node v26.8.2
The BYOK example in the README ends with --use:
mcode provider add --name my-provider --base-url https://example.com/v1 \
--api-format openai-completions --model my-model \
--api-key-env MCODE_PROVIDER_API_KEY --use
Running it exits 1 with:
Test the saved provider configuration before activating it
Nothing is saved. mcode provider list does not show the provider, and
mcode provider test <name> reports "Model provider not found".
Two problems:
- The message says "Test the saved provider configuration", but the provider
was never written — the check runs before any persistence.
- Headless users get a wrong signal afterwards:
mcode exec fails with
"Sign in to MiniMax to use Agent features", which sends people off to
mcode login when the real problem is the provider was never stored.
Retrying without --use does work ("Provider added: my-provider"), followed by
mcode provider test — so the workaround is just dropping --use.
Suggestion: either save first and then require provider test before
activating, or make the message state that nothing was saved and print the
working sequence. Also worth updating the README example, since it sends every
new BYOK user into this on their first run.
mcode 0.4.12, npm install, Linux, Node v26.8.2
The BYOK example in the README ends with
--use:Running it exits 1 with:
Nothing is saved.
mcode provider listdoes not show the provider, andmcode provider test <name>reports "Model provider not found".Two problems:
was never written — the check runs before any persistence.
mcode execfails with"Sign in to MiniMax to use Agent features", which sends people off to
mcode loginwhen the real problem is the provider was never stored.Retrying without
--usedoes work ("Provider added: my-provider"), followed bymcode provider test— so the workaround is just dropping--use.Suggestion: either save first and then require
provider testbeforeactivating, or make the message state that nothing was saved and print the
working sequence. Also worth updating the README example, since it sends every
new BYOK user into this on their first run.