401 invalid_token
CorPole refused the agent's credentials. The token is revoked or expired, the solution is not active, or its owner can no longer read the solution.
For: Team developer, Solo builder
Why it happens
- The agent token was revoked, or its expiry date has passed.
- The solution is not active (for example, archived).
- The token's owner can no longer read the solution: their role or solution access was removed. A token never carries more than its owner's permissions.
- An OAuth connection was disconnected, or its refresh token was reused and the connection was revoked for safety.
Fix it
- Using OAuth in Claude Code: run
/mcp, select corpole and choose Authenticate. - Using a token: open Agents → Agent tokens in the solution, create a new personal token and replace the old one where your agent reads it (
CORPOLE_TOKENor~/.config/corpole/token). - If the token belongs to someone who left the solution, ask a person with the integrations permission to create a service token for CI.