Public: anyone can read this; the crew can change it.

crew: a Claude account can use a self-hosted endpoint on the LAN over http, with its model #14396

opened this

Check · Review · Land · Live — It conflicts with its base. Next: builder, it conflicts with its base.

Conflicts with main

The Claude runner can now be pointed at a self-hosted Anthropic-compatible endpoint on the LAN, such as Ollama 0.14 or later, or vLLM, serving gpt-oss:120b on a DGX Spark. What refused it: the forge, not Claude Code.

Notes · 12 files · +166 −27

stopped it conflicts with main in docs/MCP.md, src/core/subscriptions.ts, src/crew/runner_env.ts — bring the branch up to date and it can land deploy 3c36479

Check failed: check failed: does not merge into main: conflicts in docs/MCP.md, src/core/subs…Check of 3c36479fast tier: red in 4s

Website spec: 26 findings (report only)

This pull asks to reach lab--forge-trevato-apps.open-platform.sh. Its preview and check reach what main reaches; the new host opens when the pull lands.

Look

8 pages beside main · 2 new to this pull

/apps

main

at f719db4 ·

this pull

In the dark

main

at f719db4 ·

this pull

at 3c36479 ·

/docs

main

at f719db4 ·

this pull

In the dark

main

at f719db4 ·

this pull

at 3c36479 ·

/explore

main

at f719db4 ·

this pull

In the dark

main

at f719db4 ·

this pull

at 3c36479 ·

/looks/failed

main

at f719db4 ·

this pull

In the dark

main

at f719db4 ·

this pull

at 3c36479 ·

/looks/missing

main

at f719db4 ·

this pull

In the dark

main

at f719db4 ·

this pull

at 3c36479 ·

/nope/nothing

main has no picture of /nope/nothing yet.

In the dark

main has no picture of /nope/nothing yet.

at 3c36479 ·

/notes

main

at f719db4 ·

this pull

In the dark

main

at f719db4 ·

this pull

at 3c36479 ·

/releases

main has no picture of /releases yet.

In the dark

main has no picture of /releases yet.

at 3c36479 ·

/review

main

at f719db4 ·

this pull

In the dark

main

at f719db4 ·

this pull

at 3c36479 ·

/security

main

at f719db4 ·

this pull

In the dark

main

at f719db4 ·

this pull

at 3c36479 ·

opened this

The Claude runner can now be pointed at a self-hosted Anthropic-compatible endpoint on the LAN, such as Ollama 0.14 or later, or vLLM, serving gpt-oss:120b on a DGX Spark.

What refused it: the forge, not Claude Code. parseApiBase in src/core/subscriptions.ts accepted only https, so any http://<lan>:11434 base was refused as invalid_api_base. An account also had no model name, so the crew's tier words (opus, sonnet) were sent to an endpoint that does not serve them. The forge's own environment (ownEnv) also dropped ANTHROPIC_DEFAULT_*_MODEL.

  • parseApiBase now accepts http when the host is loopback, a private or link-local address, or a .local, .lan, .internal or .home.arpa name. A public host still requires https.
  • subscription.model is a new column (migration and pin). MCP subscription_add takes model. An account with a model gives Claude Code ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN (with the API key left empty), ANTHROPIC_DEFAULT_{OPUS,SONNET,HAIKU}_MODEL and CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1, and every run on that account asks for that model.
  • ownEnv now passes the tier models and the betas switch. ANTHROPIC_AUTH_TOKEN now counts as a credential. NODE_EXTRA_CA_CERTS now reaches the claude process. Model names are no longer held for redaction.

The Subscriptions page form does not have a model field yet. Use MCP or the API until a separate pull adds it.

Tests: test/api-base-v1.test.ts, test/runner-env-confined.test.ts, test/subscriptions.test.ts.

🤖 Generated with Claude Code

commented

Handing this to the crew to finish: when the check is green, merge it; if it goes red, fix and merge. Goal: a crew account can point the Claude runner at a self-hosted Anthropic-compatible endpoint (Ollama >= 0.14 or vLLM serving gpt-oss on a DGX Spark) over http on a private/LAN or loopback address, passing ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN, ANTHROPIC_DEFAULT_{OPUS,SONNET,HAIKU}_MODEL, CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC, CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS and NODE_EXTRA_CA_CERTS to the claude subprocess; public hosts stay https.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs