Jcode Provider Errors: Fix Login, Models and Wrong Endpoints

Fix a provider error by checking the selected profile, model and endpoint together. Start with the exact error, then use the matching steps below.

1. Update and check the executable

jcode --version
jcode update
jcode --version

Start a fresh client after updating. If an editor launches Jcode for you, check the executable configured in that editor as well. The Zed ACP guide shows where to set its command.

2. Match the error to the next step

401 or invalid credential

Confirm the intended provider or named profile and its expected credential. Correct that profile’s key or use its login route, then send one short request. Keep the credential with the endpoint it belongs to.

404 or model not found

Check both the model ID and the endpoint shown in the error. A valid model sent to a different provider can return a 404. For local models, use the Ollama missing-model recovery.

Unexpected OpenRouter key request

Check the provider or profile attached to the session. Select the intended route explicitly instead of supplying an unrelated key.

3. Recover when the model changes but the endpoint stays behind

A model ID is only one part of the request. The session also needs the destination provider, base URL and matching authentication.

  1. Read the endpoint and model named in the error or provider status.
  2. Compare them with the provider you intended to use.
  3. If they differ, leave that session and launch a fresh one with the intended profile and model together.

For a named OpenAI-compatible profile in your Jcode configuration:

jcode --provider-profile YOUR_PROFILE --model YOUR_MODEL

Replace the two example values with your configured profile name and a model it serves. For a direct provider, choose it explicitly:

jcode --provider openrouter --model YOUR_OPENROUTER_MODEL

Use the provider guide to choose the route that matches your account. Start a fresh session with these arguments rather than resuming the earlier one.

Fresh named-profile launch reaches the intended provider endpoint
A fresh named-profile launch reached the intended endpoint and used its matching authentication.

Then send a short prompt. Check the response and the intended route before returning to the full task.

4. Check an older running session

If the updated client reports an older server, save your work and restart the relevant Jcode session through its normal controls. Open a fresh session with an explicit provider or profile. This also gives the intended model and endpoint a clean starting point.

Continue with the right guide

OpenRouter setup · Ollama setup · MCP connection problems · Voice input

Official Jcode documentation