[GH-ISSUE #13936] Respect OLLAMA_HOSTNAME with ollama launch claude #9119

Closed
opened 2026-04-12 21:58:21 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @gabe-l-hart on GitHub (Jan 27, 2026).
Original GitHub issue: https://github.com/ollama/ollama/issues/13936

Description

Currently, the ollama launch claude command hard codes the ANTHROPIC_BASE_URL environment variable to http://localhost:11434 (here). With normal ollama client commands, you can set OLLAMA_HOST in the environment to point to a different server hostname (running elsewhere, local copy w/ non-default port). Currently, I'm unable to use ollama launch from my laptop to connect to Ollama on my local server.

Originally created by @gabe-l-hart on GitHub (Jan 27, 2026). Original GitHub issue: https://github.com/ollama/ollama/issues/13936 ## Description Currently, the `ollama launch claude` command hard codes the `ANTHROPIC_BASE_URL` environment variable to `http://localhost:11434` ([here](https://github.com/ollama/ollama/blob/26acab64b7049eb30e130060908d6a8c60b8a369/cmd/config/claude.go#L53C47-L53C47)). With normal `ollama` client commands, you can set `OLLAMA_HOST` in the environment to point to a different server hostname (running elsewhere, local copy w/ non-default port). Currently, I'm unable to use `ollama launch` from my laptop to connect to Ollama on my local server.
GiteaMirror added the feature request label 2026-04-12 21:58:21 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#9119