AI 安全
AgentOS fixes key misrouting; users with specific configurations should rotate keys
Requests were still sent to OpenRouter when users selected another model provider. A fix is available; users who ran AgentOS without specifying a connection URL should also rotate the key for their original provider.

Readers using AgentOS with other model services should check whether they ever selected a provider other than OpenRouter while leaving base_url unset—the destination URL for model requests. The project confirmed that this configuration sent the provider’s API key to OpenRouter with the request, and advises anyone who ran AgentOS this way to rotate their key. The fix is included in v2026.11.24. Although the version is named for November 24, the release page lists November 23 as its release date. Release notes
Why could requests go to the wrong place when the right provider was selected?
AgentOS is an AI agent tool that runs on a user’s own computer and connects to multiple model services. It provides command-line, web, and chat interfaces, and uses OpenRouter by default. This issue involved model connection settings and could affect requests sent through the gateway and the agentos agent command. Project overview, security fix details
According to the merged PR, in older versions [llm] base_url defaulted to https://openrouter.ai/api/v1 regardless of the selected provider. At runtime, this setting took precedence over the endpoint registered for the provider, so the intended URL was not used. The maintainers’ examples include specifying Anthropic and providing a key through environment variables without setting a URL. The request would carry the key in its authorization header; agentos configure provider could also save the wrong URL in the configuration. Fix PR
A 401 error does not prove the key stayed on your computer
The maintainers said OpenRouter returned an HTTP 401 authentication error, making the affected configuration appear simply unusable. As their description makes clear, a service rejecting a request and whether credentials were sent are separate matters: receiving an error response does not mean the key never left the computer. Issue description
However, the release page and PR reviewed for this article provide no evidence that keys were retained, stolen, or misused. This article therefore confirms the credential misrouting issue disclosed by the project. The faulty behavior and the fix’s effects are based on the project’s descriptions; this publication did not independently reproduce the issue or conduct a forensic investigation.
Update, check the URL, then address old keys
When base_url is not specified, the new version uses the endpoint registered for the provider. Configurations such as Azure and vLLM, which already require users to enter a URL themselves, still need one. If a configuration would send a non-OpenRouter provider’s key to openrouter.ai, the program now rejects it when creating the client, preventing the request from being sent. The configuration tool also corrects saved OpenRouter URLs under other providers. Fix details
Users should update to a version that includes the fix and check the provider, destination URL, and service associated with the key. According to the project documentation, after updating, users should also confirm that the running gateway is using the new version, so that a background process is not still running the old code after only the package has been updated. Update instructions
Anyone who ran AgentOS with a non-OpenRouter provider and no URL set should rotate that provider’s key, following the release guidance: create a new key, replace the deployment credential, and then revoke the old key. Updating prevents future misrouting but cannot retract requests that were already sent. Key rotation guidance
When checking the configuration, keep a valid exception in mind: using provider = "openai" with a compatibility interface, an OpenRouter URL, and its sk-or-... key is still an allowed combination under the fix. The key is whether the URL matches the credential, not just the provider name. Compatibility configuration details
Sources
- Release AgentOS 2026.11.24 · use-agent-os/agent-os · GitHub
- fix(provider)!: send a provider's key only to its own endpoint by keyKQ · Pull Request #4002 · use-agent-os/agent-os · GitHub
- GitHub - use-agent-os/agent-os: The Open Agent Operation System
- AgentOS — Local-first agentic trading, minimum tokens.