You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enter 1-39: 36
Setting up Ollama...
See setup details: https://ollama.com/blog/openai-compatibility
Endpoint: http://localhost:11434/v1
This provider uses a local OpenAI-compatible endpoint.
An API key is optional here. Press Enter to skip if your local server does not require one.
Optional Ollama API key:
Saved Ollama local endpoint setup.
Stored at ~/.config/jcode/ollama.env
Validating Ollama login with live auth/runtime checks...
=== auth-test: ollama ===
credential paths:
- /Users/jlesbegu/Library/Application Support/jcode/ollama.env
✓ credential_probe — Ollama auth status is available (local endpoint (`http://localhost:11434/v1`)).
✓ refresh_probe — Skipped: provider does not expose a dedicated refresh probe in jcode today.
✗ provider_smoke — ollama provider smoke prompt failed: API error (402 Payment Required): {"error":{"message":"This request requires more credits, or fewer max_tokens. You requested up to 64000 tokens, but can only afford 2666. To increase, visit https://openrouter.ai/settings/credits and upgrade to a paid account","code":402,"metadata":{"provider_name":null}},"user_id":"user_3AXXXXXXXXXXXXXXXXXXX"}
result: FAIL
Error: Post-login validation failed for Ollama. Credentials were saved, but jcode could not verify runtime readiness. Re-test with `jcode --provider ollama run "Reply with exactly AUTH_TEST_OK and nothing else."` after fixing the provider/runtime.
Local models are supported now via Ollama and general OpenAI-compatible endpoints.
I re-tested this on a real Ollama setup with a saved ~/.config/jcode/ollama.env and a local model (llama3.2:1b) on current master.
Verified working:
jcode auth-test --provider ollama --no-tool-smoke
jcode --provider ollama --model llama3.2:1b run "Reply with exactly AUTH_TEST_OK and nothing else."
Both passed.
I also specifically re-checked the earlier failure report in this thread. On current master, I could not reproduce the old behavior where the Ollama validation path ended up hitting an OpenRouter 402 with the requested up to 64000 tokens message.
Closing this as resolved.
If anyone still hits a local-model issue, please open a new issue with:
provider
model
exact jcode auth-test --provider ... output
whether you are using Ollama or another OpenAI-compatible server
@1jehuang The described steps work but starting a new session using jcode --provider ollama --model llama3.2:1b doesn't work. The provider always shows as "OpenRouter" and the /model command dosen't show any of my locally installed models.
Hello,
It works with base_url is http://localhost:11434/v1 but it ollama running on another machine in the LAN it complain when set base_url is http://<LAN_IP>:11434/v1 it suggest to use a weird format http://localhost/127.0.0.1/<LAN_IP>:11434/v1 I also tried set as suggested but got error
=== auth-test: openai-compatible ===
credential paths:
- /Users/anb/Library/Application Support/jcode/openai-compatible.env
✓ credential_probe — OpenAI-compatible auth status is available (API key (`OPENAI_COMPAT_API_KEY`)).
✓ refresh_probe — Skipped: provider does not expose a dedicated refresh probe in jcode today.
✗ provider_smoke — openai-compatible provider smoke prompt failed: Failed to send OpenAI-compatible chat request
endpoint: http://localhost/127.0.0.1/192.168.1.25:11434/v1/chat/completions
model: FPT.AI-KIE-v1.7
auth: local endpoint (no auth)
Hint: check network connectivity, DNS/TLS, and that the base URL includes the API version (usually /v1).: error sending request for url (http://localhost/127.0.0.1/192.168.1.25:11434/v1/chat/completions): client error (Connect): tcp connect error: Connection refused (os error 61)
result: FAIL
Error: One or more auth tests failed
Activity
1jehuang commentedon Feb 23, 2026
i'm not a fan of local models, but if enough people want it i will add it.
pomazanbohdan commentedon Mar 16, 2026
Some people may use an LLM proxy, in which case this will also be required.
KeentGG commentedon Apr 1, 2026
how to add custom models? i have fireworks.ai firepass which is unlimited turbo version of kimi k2.5, but cant use it nor add as model in jcode
1jehuang commentedon Apr 7, 2026
support for ollama api is here! Could you guys help me test this? /login and select ollama.
1jehuang commentedon Apr 7, 2026
also general openai api comatibility is there
julienlesbegueriesperso commentedon Apr 7, 2026
It failed :
My local Ollama has a context of 128K
1jehuang commentedon Apr 15, 2026
Local models are supported now via Ollama and general OpenAI-compatible endpoints.
I re-tested this on a real Ollama setup with a saved
~/.config/jcode/ollama.envand a local model (llama3.2:1b) on currentmaster.Verified working:
jcode auth-test --provider ollama --no-tool-smokejcode --provider ollama --model llama3.2:1b run "Reply with exactly AUTH_TEST_OK and nothing else."Both passed.
I also specifically re-checked the earlier failure report in this thread. On current
master, I could not reproduce the old behavior where the Ollama validation path ended up hitting an OpenRouter 402 with therequested up to 64000 tokensmessage.Closing this as resolved.
If anyone still hits a local-model issue, please open a new issue with:
jcode auth-test --provider ...output1jehuang commentedon Apr 15, 2026
Closing as resolved. Please open a new issue if a specific local-model provider or model still fails on current master.
nicolasmn commentedon May 4, 2026
@1jehuang The described steps work but starting a new session using
jcode --provider ollama --model llama3.2:1bdoesn't work. The provider always shows as "OpenRouter" and the/modelcommand dosen't show any of my locally installed models.alexewsv commentedon May 7, 2026
Hello,
It works with base_url is http://localhost:11434/v1 but it ollama running on another machine in the LAN it complain when set base_url is http://<LAN_IP>:11434/v1 it suggest to use a weird format
http://localhost/127.0.0.1/<LAN_IP>:11434/v1I also tried set as suggested but got errorThanks,
fix(providers): roll back partial output on mid-stream retry instead …
security: add restricted mode for swarm sub-agents
fix(providers): roll back partial output on mid-stream retry instead …
5 remaining items
refactor(review-loop): resolve four trade-offs and drop unneeded back…
fix(review-loop): block idle self-drive while any queued dispatch is …
docs(research): record deepseek-harness plan implementation status
feat(review): harden the headless review path (1jehuang#2-1jehuang#5)
perf(compass): dedupe source reads, cap snippet blocks, add usage tel…
feat(handoff): resolve remaining manual-selection trade-offs
feat(handoff): resolve remaining manual-selection trade-offs
feat(session): add projection registry + live transcript projection
feat(session): prove the live-transcript projection matches derive_me…
feat(session): expose projected_messages() read seam on Session
feat(agent): first producer consumes projected_messages() seam
feat(agent): migrate remaining derive_messages readers to projection …
feat(session): add RoleCountsProjection to prove one-fold-many-readers
docs(harness): record prioritized follow-ups from the projection seam…
feat(session): incremental projection cache at the append seam (f1)