Is there an existing issue for the same bug?
This appears closely related to previously reported/fixed managed LiteLLM credential issues, especially:
However, I am reporting this because the issue is still reproducible on Hosted OpenHands Cloud after the managed-key refresh/self-healing work was merged and released.
Bug Description
Hosted OpenHands Cloud (app.all-hands.dev) cannot start conversations using the default OpenHands-managed LLM.
Every new conversation fails with:
401
Authentication Error, Invalid proxy server token passed.
Unable to find token in cache or LiteLLM_VerificationTokenTable
type: token_not_found_in_db
This occurs with the default hosted configuration:
Agent: OpenHands / CodeActAgent
Model: openhands/deepseek-v4.1-flash
Active profile: Default
I previously temporarily configured an OpenAI/Codex API key while testing another model.
That configuration was later removed, and the default OpenHands-managed configuration was restored.
The visible profile/settings now appear normal, but Hosted OpenHands continues to send a managed proxy credential that LiteLLM rejects.
This may therefore be a regression or an account state not covered by the managed LiteLLM key refresh/self-healing logic introduced for OpenHands/OpenHands#15022.
Expected Behavior
When the managed LiteLLM credential associated with a Hosted OpenHands Cloud account is stale or missing upstream, OpenHands should detect that state, refresh/rotate the managed credential, and start the conversation normally.
A new Hosted OpenHands conversation using:
openhands/deepseek-v4.1-flash
should successfully start without requiring the user to manually supply an API key.
Actual Behavior
This bug occurs in Hosted OpenHands Cloud, not in a locally installed SDK.
Current active profile information:
{
"name": "Default",
"model": "openhands/deepseek-v4.1-flash",
"base_url": "https://llm-proxy.app.all-hands.dev",
"api_key_set": false,
"provider_connection_id": null
}
Relevant /api/settings state:
agent_kind: openhands
agent: CodeActAgent
agent_settings.llm.model:
openhands/deepseek-v4.1-flash
agent_settings.llm.api_key:
null
agent_settings.llm.base_url:
null
llm_api_key_set:
true
No user-supplied API key is currently configured in the active LLM profile.
Starting a new conversation and sending:
Reply exactly: OPENHANDS_OK
fails immediately with:
Error code: 401
Authentication Error, Invalid proxy server token passed.
Unable to find token in cache or LiteLLM_VerificationTokenTable
type: token_not_found_in_db
code: 401
The actual API key and token hash have intentionally been redacted.
I also tested the historical workaround described in OpenHands/OpenHands#15282:
Settings
→ LLM
→ leave the default configuration unchanged
→ Save
→ start a new conversation
This did not repair the credential.
A newly created conversation still fails with the same 401 token_not_found_in_db error.
Because this failure occurs entirely in Hosted OpenHands Cloud, there is no meaningful local python, pytest, uv, or pip command that reproduces it.
Steps to Reproduce
Hosted Cloud reproduction:
-
Sign in to https://app.all-hands.dev.
-
Use the OpenHands / CodeActAgent agent.
-
Use the active Default LLM profile.
-
Use:
openhands/deepseek-v4.1-flash
-
Confirm the active profile reports:
api_key_set: false
provider_connection_id: null
-
Start a new Hosted OpenHands conversation.
-
Send:
Reply exactly: OPENHANDS_OK
-
The conversation fails immediately with:
401
token_not_found_in_db
LiteLLM_VerificationTokenTable
Additional recovery attempt:
- Open Settings → LLM.
- Leave the default configuration unchanged.
- Click Save.
- Start another new conversation.
- Send the same minimal message.
- The same 401 error still occurs.
This is a Hosted Cloud reproduction path. No local SDK installation is involved.
Acceptance Criteria
Installation Method
Hosted OpenHands Cloud:
https://app.all-hands.dev
No local OpenHands SDK installation is involved.
If you selected "Other", please specify
Hosted OpenHands Cloud / SaaS.
SDK Version
Not applicable.
This failure occurs on Hosted OpenHands Cloud rather than a locally installed OpenHands SDK.
Version Confirmation
The issue is reproducible on the currently deployed Hosted OpenHands Cloud service as of 2026-09-19.
Python Version
Not applicable.
No local Python/SDK execution is involved in reproducing the issue.
Model Name (if applicable)
openhands/deepseek-v4.1-flash
Operating System
Windows / Chrome browser.
The failure appears account/backend related rather than OS-specific.
Logs and Error Messages
Redacted error:
Error code: 401
Authentication Error, Invalid proxy server token passed.
Received API Key = [REDACTED]
Key Hash (Token) = [REDACTED]
Unable to find token in cache or LiteLLM_VerificationTokenTable
type: token_not_found_in_db
param: key
code: 401
Sensitive values have intentionally been removed.
Minimal Code Sample
Not applicable.
This is reproducible directly in the Hosted OpenHands Cloud UI and does not require SDK code.
Minimal Hosted Cloud input:
Reply exactly: OPENHANDS_OK
Screenshots and Additional Context
This looks very similar to the previously documented managed LiteLLM key failure in:
The earlier #15282 report was explicitly described as a per-account managed LiteLLM credential problem rather than a normal OpenHands API key problem.
The managed-key fix was subsequently merged and released, so the fact that the same failure is still reproducible may indicate:
- a regression in the startup self-healing path,
- a managed credential state not covered by the existing repair logic, or
- inconsistency between the Hosted OpenHands account's stored managed credential and the LiteLLM verification database.
Current visible configuration appears restored to the hosted default:
Agent: OpenHands / CodeActAgent
Profile: Default
Model: openhands/deepseek-v4.1-flash
Profile api_key_set: false
Provider connection: null
Managed proxy: https://llm-proxy.app.all-hands.dev
The historical Settings → LLM → Save workaround also fails to recover the account.
If account-specific information is required to investigate or repair the managed credential, please provide a private support channel where I can send identifiers such as my Hosted OpenHands account email, organization ID, or conversation ID.
I intentionally have not posted publicly:
- API keys or partial API keys
- token hashes
- Authorization headers
- cookies/session credentials
- OpenHands account email
- organization ID
- repository names
- workspace/conversation IDs
- HAR files
I also have an existing Hosted OpenHands workspace containing uncommitted development files.
Please avoid deleting or resetting existing workspaces as part of account-level credential remediation unless absolutely necessary.
Scope / Routing Note
This is specifically a Hosted OpenHands Cloud (app.all-hands.dev) managed-credential failure, not a local openhands-sdk execution failure.
The SDK repository's automated readiness check requests a local python, pytest, uv, or pip reproduction command, but such a command is not applicable to this Hosted Cloud failure.
If OpenHands/software-agent-sdk is not the correct tracker for this Hosted Cloud credential regression, please transfer or route this issue to the appropriate OpenHands Cloud/backend tracker rather than treating the absence of a local SDK command as a reproduction failure.
Is there an existing issue for the same bug?
This appears closely related to previously reported/fixed managed LiteLLM credential issues, especially:
However, I am reporting this because the issue is still reproducible on Hosted OpenHands Cloud after the managed-key refresh/self-healing work was merged and released.
Bug Description
Hosted OpenHands Cloud (
app.all-hands.dev) cannot start conversations using the default OpenHands-managed LLM.Every new conversation fails with:
This occurs with the default hosted configuration:
I previously temporarily configured an OpenAI/Codex API key while testing another model.
That configuration was later removed, and the default OpenHands-managed configuration was restored.
The visible profile/settings now appear normal, but Hosted OpenHands continues to send a managed proxy credential that LiteLLM rejects.
This may therefore be a regression or an account state not covered by the managed LiteLLM key refresh/self-healing logic introduced for OpenHands/OpenHands#15022.
Expected Behavior
When the managed LiteLLM credential associated with a Hosted OpenHands Cloud account is stale or missing upstream, OpenHands should detect that state, refresh/rotate the managed credential, and start the conversation normally.
A new Hosted OpenHands conversation using:
should successfully start without requiring the user to manually supply an API key.
Actual Behavior
This bug occurs in Hosted OpenHands Cloud, not in a locally installed SDK.
Current active profile information:
{ "name": "Default", "model": "openhands/deepseek-v4.1-flash", "base_url": "https://llm-proxy.app.all-hands.dev", "api_key_set": false, "provider_connection_id": null }Relevant
/api/settingsstate:No user-supplied API key is currently configured in the active LLM profile.
Starting a new conversation and sending:
fails immediately with:
The actual API key and token hash have intentionally been redacted.
I also tested the historical workaround described in OpenHands/OpenHands#15282:
This did not repair the credential.
A newly created conversation still fails with the same
401 token_not_found_in_dberror.Because this failure occurs entirely in Hosted OpenHands Cloud, there is no meaningful local
python,pytest,uv, orpipcommand that reproduces it.Steps to Reproduce
Hosted Cloud reproduction:
Sign in to
https://app.all-hands.dev.Use the OpenHands / CodeActAgent agent.
Use the active
DefaultLLM profile.Use:
Confirm the active profile reports:
Start a new Hosted OpenHands conversation.
Send:
The conversation fails immediately with:
Additional recovery attempt:
This is a Hosted Cloud reproduction path. No local SDK installation is involved.
Acceptance Criteria
401 token_not_found_in_db.llm-proxy.app.all-hands.dev.token_not_found_in_db.Installation Method
Hosted OpenHands Cloud:
No local OpenHands SDK installation is involved.
If you selected "Other", please specify
Hosted OpenHands Cloud / SaaS.
SDK Version
Not applicable.
This failure occurs on Hosted OpenHands Cloud rather than a locally installed OpenHands SDK.
Version Confirmation
The issue is reproducible on the currently deployed Hosted OpenHands Cloud service as of 2026-09-19.
Python Version
Not applicable.
No local Python/SDK execution is involved in reproducing the issue.
Model Name (if applicable)
Operating System
Windows / Chrome browser.
The failure appears account/backend related rather than OS-specific.
Logs and Error Messages
Redacted error:
Sensitive values have intentionally been removed.
Minimal Code Sample
Not applicable.
This is reproducible directly in the Hosted OpenHands Cloud UI and does not require SDK code.
Minimal Hosted Cloud input:
Screenshots and Additional Context
This looks very similar to the previously documented managed LiteLLM key failure in:
The earlier #15282 report was explicitly described as a per-account managed LiteLLM credential problem rather than a normal OpenHands API key problem.
The managed-key fix was subsequently merged and released, so the fact that the same failure is still reproducible may indicate:
Current visible configuration appears restored to the hosted default:
The historical Settings → LLM → Save workaround also fails to recover the account.
If account-specific information is required to investigate or repair the managed credential, please provide a private support channel where I can send identifiers such as my Hosted OpenHands account email, organization ID, or conversation ID.
I intentionally have not posted publicly:
I also have an existing Hosted OpenHands workspace containing uncommitted development files.
Please avoid deleting or resetting existing workspaces as part of account-level credential remediation unless absolutely necessary.
Scope / Routing Note
This is specifically a Hosted OpenHands Cloud (
app.all-hands.dev) managed-credential failure, not a localopenhands-sdkexecution failure.The SDK repository's automated readiness check requests a local
python,pytest,uv, orpipreproduction command, but such a command is not applicable to this Hosted Cloud failure.If
OpenHands/software-agent-sdkis not the correct tracker for this Hosted Cloud credential regression, please transfer or route this issue to the appropriate OpenHands Cloud/backend tracker rather than treating the absence of a local SDK command as a reproduction failure.