Troubleshooting

Start with Codity: Show Agent Log: it shows what the agent did when it started, which model and billing it chose, and the error behind most problems.

The panel says the CLI is missing or too old

The extension needs the Codity CLI 2.8.0 or later. Check with codity --version in a terminal.

  • Too old: run codity update. If that fails, reinstall with curl -fsSL https://cli.codity.ai/install.sh | sh.
  • Missing, but installed: VS Code may not see the folder it is in, especially when started from a desktop launcher. Set codity.cliPath in your user settings to the full path from which codity, then Codity: Restart Agent.

The agent asks you to sign in

The extension uses the CLI's sign-in. Run codity login in a terminal, then Codity: Restart Agent.

No model key and no credits

No model key on this machine and no Codity credits to fall back on means your organization's wallet is empty and VS Code can't see a provider key. Top up the wallet on the dashboard, or set up your own keys as described in Models and billing. Keys exported after VS Code started are not visible to it: quit VS Code completely and start it again.

The agent can't reach Codity

If the network drops, the panel shows the error and retries by itself a few times over the next minute. Once the network is back, Try again retries at once. Behind a proxy, make sure VS Code's environment has your HTTPS_PROXY settings.

An action is refused without asking

Your organization's or team's policy denies it, or a hook blocked it. The tool's result shows the reason. A policy deny can't be approved away; ask an administrator if it should be allowed.

Your hooks don't run

Your own ~/.codity/hooks.json is skipped when other users can write to it or its folder. Run chmod 600 ~/.codity/hooks.json and chmod 700 ~/.codity, then start a new session. The agent log says why a file was skipped. A malformed file is skipped too, with the error in the log.

An MCP server doesn't appear or doesn't connect

Open Codity: MCP Servers and check its state:

  • Waiting for your approval: a project server you haven't approved; choose it and approve.
  • Blocked by policy: your organization or team doesn't allow it.
  • Cannot start: usually a ${VAR} reference to a variable VS Code can't see. Export it and restart VS Code.
  • Failed: the error says why; check the command runs in a terminal, or that the URL is reachable.
  • Needs sign-in: choose Sign in and finish in your browser.

The team button appears only when at least one team you belong to has an agent policy that sets something; a policy saved empty does not count. Ask an administrator to add one under Teams → select the team → Settings → Agent policy.

Remote control doesn't open on the phone

Sign in to Codity on the phone with the same account you use in VS Code. If the panel was closed or the session ended, turn remote control on again for a new link.

Still stuck

Run Codity: Open Run in Dashboard to see the run's full timeline, and contact contact@codity.ai with the run link and the agent log.