Skip to main content
The API, CLI and MCP return unauthenticated with HTTP 401. Repeating the same request unchanged does not help.

What to do

The login or token was not accepted; repeating unchanged does not help. If OHMYHOST_TOKEN is set, it was revoked, mistyped or belongs to a different platform than OHMYHOST_ENVIRONMENT selects (a platform setting, not the project’s dev or prod): ask the customer for a current token from the portal’s API Tokens page, or unset it and run ‘ohmyhost login —json’. Otherwise run ‘ohmyhost login —json’, then repeat the request. If the steps above do not resolve it, report it with the request_id from the error.