Repository navigation
Releases
LocalRouter 0.4.2
LocalRouter 0.4.2 lets local Agents maintain Packs without a console step and serves Pack embeddings on /v1.
- Agent maintenance is on by default.
lr manage-token [agent-code]issues a distinct maintenance-only Token at once through the loopback identity handshake, saves it mode 0600, andlr manage-*uses it automatically. The Token maintains Packs only through the reviewed draft lifecycle (draft → review → exact-digest apply, with rollback) and cannot call services; a service identity cannot widen itself into one. Turning 「Agent 维护」 off on the console Tokens page rejects every maintenance Token at once and is remembered. - Policy files from earlier releases did not record the switch when it was off, so they load as on. Operators who want it off turn it off once after upgrading.
/v1serves every model-declaring operation of a Pack the operator puts on/v1, not only chat: embedding models answer on/v1/embeddings, appear inGET /v1/models, and discoverymodels.v1_pack_models[]gainspath.- A model enum declared by a Pack operation now claims those models even when the Pack has a catalogue, so model search,
lr execand/v1map embedding models to embeddings and chat models to chat. lr describeand preflight show model-scoped prices for operations that take a model, andlr treemarksblockedordeprecatedoperations.lr manage-listandlr manage-callprint the gateway's structured error instead of failing silently.
Contract schema stays 19. Upgrade with the archive installer; existing configuration, credentials and state are preserved. Provider accounts and private Pack configuration are not included.
LocalRouter 0.4.1
LocalRouter 0.4.1 makes local AIs and programs reach services with less ceremony: a Token and a model name on /v1, identities issued at once, and a guide that Agents verified by completing real tasks from it alone.
/v1is the shortest path. A request withoutmodeluses the operator's default model, and full Protocol Packs the operator lists inmodels.jsonanswer on/v1and appear inGET /v1/models. Failover moves to the next Pack only when nothing was sent upstream or the provider answered 429. The new console tab 服务与渠道 → 默认模型 sets the default model, each service's preferred model, and which Packs serve/v1.- No identity review.
lr identity requestandlr connect <program>issue at once on the trial budget; money remains the only human decision.lr connectwrites a program's mode-600 Token file andlocalrouter.toml. - Model search runs on the gateway (
/agent/models) and marks preferred and default models;lr find modelandlr statusno longer fail withArgument list too long. - A dedicated loopback alias,
127.0.0.1:29317, serves the same gateway as port 8317. - Preflight enforces length, range and size limits from explicit request schemas. An upstream 429 releases its budget reservation, attempts of one
/v1request share a trace, and unknown/v1models return 404model_not_found. - The live guide (
lr guide) is the single usage contract; the installed global Agent contract keeps only fixed boundaries. - Updated Vite to 7.3.7 and Vitest to 4.1.12, resolving the reported console build advisories.
Contract schema 19: Agents that cache contracts re-read discovery. Upgrade with the archive installer; existing configuration, credentials and state are preserved. Provider accounts and private Pack configuration are not included.
Built with Go 1.26.10 (GO-2026-6809). The v0.4.0 tag stopped at its release vulnerability check and published nothing; 0.4.1 contains all of its changes.
LocalRouter 0.3.0
LocalRouter 0.3.0 adds optional service budgets and reviewed Agent enrollment, and simplifies the console for daily use.
- Shared service and operation budgets, with explicit approval rules and retained accounting for uncertain outcomes. Strict identity and allowance enforcement remain opt-in.
- Human-reviewed identity enrollment and scope changes, plus private execution receipts and trace-only recovery through
lr result. - Four primary console destinations, on-demand advanced tools, clearer Token management, accessible mobile navigation, and service operations shown first.
- Connection recovery, bounded and cancellable reads, stale-data indicators, expired-session cleanup, and page-load recovery.
- Updated the Vitest development dependency to 4.1.11, resolving GHSA-82fw-gwwq-j7x9.
- Shorter CLI help and updated operator/Agent guides, including documentation and synthetic screenshots in Linux amd64/arm64 archives.
Upgrade with the archive installer, then restart localrouter.service. Existing configuration, credentials, and persistent state are preserved. Provider accounts and private Pack configuration are not included. This release retains conservative upstream retry behavior; it does not add transparent recovery after partial LLM output.
LocalRouter 0.2.0
LocalRouter v0.2.0 是首个不带预发布后缀的 0.x 里程碑,沿用已验证的 alpha.7 功能基线。本次调整版本与发行说明,网关、CLI、schema 和配置格式保持兼容。
- Agent 可准备服务接入方案,由人批准精确方案和能力范围;调用与维护授权分离。
- 提供能力包、撤权、审批恢复、任务归属与上游调用追踪。
- 提供 lr init / lr guide、精确模型发现、路径和查询参数以及原始调用证据保存指引。
- 提供隔离的本机管理面与 LAN 服务面、加固 Docker 部署和 Linux amd64/arm64 预编译安装包。
从 alpha.7 升级可使用发行包内 tools/install-localrouter.sh,然后重启 localrouter.service;现有 XDG 配置和持久化状态继续使用。发行包不包含供应商账号或操作员 Pack 配置。各供应商能力仍以具体操作的验证状态为准。
发布验证覆盖 Go/前端测试、竞态检查、隔离 CLI 和授权验收、Docker、安全扫描、双架构压缩包校验及归档安装。
LocalRouter 0.1.0-alpha.7
本次更新让 Agent 能准备服务接入方案,由人一次批准服务目标、操作范围和能力包;已授权的兼容修复可以单独委托维护。
- 新增“接入与授权”控制台,查看接入进展、模板、能力包与调用追踪。
- 能力包固定到批准的操作版本,新增操作不会自动获得权限;支持撤权和中断审批的核对恢复。
- 调用追踪关联任务、身份、MCP 和工作流的原始调用者,记录上游尝试与用量来源,保留未知结果和未知费用。
- 新增
lr init、lr guide,明确系统默认身份、独立 Agent 身份以及调用/维护凭据的边界。 - 模板目录按需读取;修复
lr call的路径和查询参数、MCP 错误退出码,以及旧指南的 Token 示例。 - Docker 构建包含新的嵌入式指南和模板。
- 根据真实 Agent 调用试验补充模型目录查询范围、字符串路径参数、逐项调用证据及超时处理指南。
验证通过 Go/前端测试、竞态检查、隔离 CLI 与授权验收、Docker、安全扫描、Linux amd64/arm64 压缩包检查及归档安装测试。
发行包仅包含通用网关、模板和工具,不含供应商账号或操作员的 Pack 配置。更新后请重启服务,并用 lr init、lr guide 查看新的 Agent 入口。
LocalRouter v0.1.0-alpha.6
LocalRouter v0.1.0-alpha.6 修复请求转发、用量统计和工作流恢复中的问题,并补齐控制台的任务与列表操作。
本次更新
- 阻止外站 Origin 和非回环 Host 访问本机入口,禁止上游重定向转发供应商凭据。
- POST 遇到连接错误或上游 5xx 后停止自动换渠道重放;非流式响应读取失败返回错误。
- 修复 multipart 模型路由、模型目录协议过滤,以及大请求和 chunked 请求的模型限制。
- 请求限额计数跨重启保留;长流式响应能够保留开始事件中的输入用量,并合并后续用量事件。
- 工作流网络等待不再占用全局状态锁;取消支持中断正在等待的请求,并使用独立的清理次数预算。中断后的不确定执行标为
outcome_unknown,避免自动重复提交。 - 控制台加载全部渠道和 Agent,日志支持翻页;单个数据接口失败不阻塞其他页面。任务页新增结果、错误详情和确认取消。
- 增加 GitHub 版本检查及控制台提示,只检查和提示,不自动下载或安装。
- 全文重写 README,重新整理安装、服务配置、Agent 接入、权限和恢复说明。
安装
下载适合设备架构的 Linux 压缩包,核对 checksums.txt 后解压,在包内执行。
./tools/install-localrouter.sh install发行包包含预编译程序,无需 Go 或 Bun。默认安装会启动 systemd 用户服务,控制台位于 http://127.0.0.1:8317/。
公开发行包不包含供应商 Pack、账号或私有配置,新安装需要自行接入上游。升级前请备份现有配置和数据;安装会重启服务,正在进行的调用可能被中断。
验证范围
本版本执行前端测试、Go 回归与竞态检查、协议和 LAN 隔离验收、Docker 验收、密钥与依赖漏洞扫描,以及 amd64/arm64 发行包检查和隔离安装验收。控制台任务、日志和故障提示已通过本机浏览器验证。
测试使用隔离的虚构上游。真实供应商付费调用未纳入本次验收。
LocalRouter v0.1.0-alpha.5
Highlights
- Adds an opt-in LAN service listener for authenticated consumer APIs while keeping the console,
/local/api, and/manage/mcploopback-only. - Adds a pinned multi-stage Docker build and hardened host-network Compose deployment: non-root runtime, read-only root filesystem, dropped capabilities, persistent private volumes, graceful shutdown, and configurable health checks.
- Lets
lruse an operator-approved LAN endpoint only after unauthenticated discovery proves it is a service-only surface with maintenance unavailable. - Improves exact Pack-qualified model discovery, catalogue timeouts,
model_clsand media catalogues, request-schema enum models, and dynamic-input compatibility matching. - Improves pooled readiness probes with distinct-credential retry and prompt rechecks after unhealthy credentials enter cooldown.
- Includes the request usage ledger, unified service management, retired Token-locator migration, and stale-draft rejection added since alpha.4.
Verification
- Full Go, race, Web, Protocol Pack, REST, SSE, binary, workflow, LAN, install, and open-source release suites passed.
- The real Docker image passed non-root, read-only, capability-drop, route-isolation, authentication, graceful-shutdown, health, and persistent-Token recreation checks.
- Physical LAN operation was verified from a separate workstation against Docker Engine on a second Linux host.
- Gitleaks, govulncheck, and OSV Scanner reported no release-blocking issue.
- The published Linux amd64 archive was installed and exercised; the Linux arm64 archive and both checksums were inspected by the release workflow.
See docs/DOCKER.md for fresh Docker deployment, LAN access, browser-origin policy, and migration from an existing native installation.
This is an alpha pre-release. Public source and archives contain no private provider Packs, credentials, pool contents, or private upstream addresses.
LocalRouter v0.1.0-alpha.4
Highlights
- Makes loopback console password protection optional and disabled by default, so local operators can open the console without entering an API key.
- Adds an explicit enable, rotate, and disable flow for a custom console password, with mode-0600 persisted state and status visibility that never exposes the secret.
- Keeps Agent maintenance isolated behind the separate
/manage/mcpadministrator or maintenance-token boundary. - Extends CLI help, global Agent guidance, Web UI guidance, and security documentation around consumer tokens, console access, and maintenance authority.
- Adds end-to-end coverage for password-free startup, protected reload and unlock, password rotation, disablement, installation, release archives, secret scanning, vulnerability scanning, and amd64/arm64 artifacts.
This is an alpha pre-release. Public archives contain no private provider Packs, credentials, pool contents, or private upstream addresses.
LocalRouter v0.1.0-alpha.3
Highlights
- Installs one managed LocalRouter consumer contract and Protocol Pack Skill for shared Agents, Codex, and OMP.
- Adds bounded service/model catalogs, exact provider-qualified model selection, one-shot service tree, and verified OpenAI runtime handoff at /p//v1.
- Makes blocked preflight and routing failures nonzero, structured, and actionable with ready alternatives.
- Accepts catalog-published operation_key values directly in describe, preflight, call, and run while preserving workflow IDs.
- Adds full race, secret, vulnerability, dual-architecture archive, and isolated archive-install release gates.
This is an alpha pre-release. Public archives contain no private provider Packs, credentials, pool contents, or private upstream addresses.