Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.
docs: describe BYOK endpoint addresses and their Computer requirement
LeoXingc64224011072
diff --git a/apps/computer/local-daemon/README.md b/apps/computer/local-daemon/README.mdindex c1479e76..27cc51ec 100644--- a/apps/computer/local-daemon/README.md+++ b/apps/computer/local-daemon/README.md@@ -180,7 +180,11 @@ model.`internal/localmodels/source.go` runs `localmodels source status|check|models|apply`for `execute` commands of kind `model_source`, on their own goroutine so theynever block Operation commands; `apply` is serialized. A BYOK key reaches the-tool on stdin, never in argv or logs. `localmodels` writes+tool on stdin, never in argv or logs, together with the address as base URL,+path and endpoint and the protocol the owner's client chose; `check` sends one+request there and `models` lists base URL + path + `/models`. The BYOK summary+carries `path` and `endpoint` only after a `runner.welcome` that names the+`byok_endpoint` service feature. `localmodels` writes`<state>/model-source.json`; the Daemon only adds the `runtime_paths` that thesame `apply` reported. It re-reads the file on every discovery tick to overlaythe Runtimes' environment (`OverlayEnvironment`) and executable pathsdiff --git a/apps/node-services/src/agent/AGENTS.md b/apps/node-services/src/agent/AGENTS.mdindex 218c00ae..22e0338a 100644--- a/apps/node-services/src/agent/AGENTS.md+++ b/apps/node-services/src/agent/AGENTS.md@@ -142,7 +142,10 @@ take precedence.(`FIRST_MODEL_SOURCE_COMPUTER_VERSION`), because an older one closes theconnection on a kind it cannot decode, and maps the Computer's refusals in`executor/http/local-computer-http.ts`. A BYOK key stays inside the request- and the envelope; it is never logged, stored or returned.+ and the envelope; it is never logged, stored or returned. A command with a+ BYOK input goes only to Computer 0.56.0 or later+ (`FIRST_BYOK_ENDPOINT_COMPUTER_VERSION`), whose welcome also names the+ `byok_endpoint` service feature.- Default unit, integration, and fixture smoke tests use deterministic adaptersand do not call a live model provider. Explicitly named live suites such as`smoke:local-runner:live` may use an authenticated provider and must remaindiff --git a/contracts/README.md b/contracts/README.mdindex 584926d5..1fa85f18 100644--- a/contracts/README.md+++ b/contracts/README.md@@ -138,6 +138,16 @@ Web → TeamHub → Agent Service → Computer → `localmodels source`:API key travels in the request and the envelope only, reaches `localmodels`on stdin, and is kept on the Computer in an owner-only file.+A BYOK input names its address as `base_url`, `path` and `endpoint`, with the+`protocol` the owner's client derived from the address's ending (else the+Runtime's own format). Requests go to `base_url + path + endpoint`, models are+listed at `base_url + path + /models`, and nothing is probed. Agent Service+sends a BYOK input only to Computer 0.56.0 or later+(`FIRST_BYOK_ENDPOINT_COMPUTER_VERSION`), and declares `byok_endpoint` in+`runner.welcome`'s `service_features` to the same releases; the Computer's BYOK+summary carries `path` and `endpoint` only after that declaration, because an+older Agent Service rejects unknown summary keys.+A switch runs `apply` on the Computer first, then moves the owner's Agents on itto the Runtime and model it now serves, in one TeamHub transaction. An Agentwith running work stays where it is unless the owner chose to end that work:diff --git a/docs/local-inference.md b/docs/local-inference.mdindex fd50ac01..0f0974f3 100644--- a/docs/local-inference.md+++ b/docs/local-inference.md@@ -25,13 +25,19 @@ does not offer a switch to Subscription.| Subscription | Claude Code or Codex | The plan the runtime is signed in to, with its own settings || BYOK | Claude Code, Codex or Pi | Your own OpenAI-compatible or Anthropic endpoint, key and model, through the local gateway |-For BYOK you enter only the URL and key, then pick a model from the ones the-endpoint lists, with their names and context windows; you type the model ID-when the endpoint lists none. The computer finds which API format the endpoint-answers, trying the runtime's own format first so the gateway passes its-requests through unchanged. A gateway that serves OpenAI under `/v1` and-Anthropic under `/anthropic` on one host works from either address. The key stays on the computer in-an owner-only file; the server never stores or shows it. A switch moves every agent on the computer to the new runtime and+For BYOK you enter the base URL and key, and optionally a path and an+endpoint. Requests go to base URL + path + endpoint: the path defaults to+`/v1` and the endpoint to the runtime's own (`/messages` for Claude Code,+`/responses` for Codex, `/chat/completions` for Pi), and `-` leaves either one+out, so a provider under `/api/paas/v4` or a full request address pasted into+the base URL works too. The full address's ending sets the request format+(OpenAI Chat Completions, OpenAI Responses or Anthropic Messages); an address+that ends otherwise uses the runtime's own format. Nothing is probed: the refresh+button lists models at base URL + path + `/models`, with their names and+context windows, and **Test** sends one request to the full address. You type+the model ID when the endpoint lists none. BYOK needs a Computer at 0.56.0 or+later. The key stays on the computer in an owner-only file; the server never+stores or shows it. A switch moves every agent on the computer to the new runtime andmodel, and leaving Local model unloads the local models to free memory. When anagent is still working, the switch asks first and ends that work only if youconfirm.