Skip to content
Docs

Claude Code isn't connected or no output is arriving

Most of the time the hook is in place and is simply waiting for Claude Code’s first command: run a build or test in Claude Code and the card updates. If the card or Run checks shows one of the messages below, its section has the fix.

MessageSection
Connected · run a build or test in Claude Code, or in Run checks: “No Claude hook received yet. Restart Claude Code and run a Bash command.”Waiting for the first result
Hooks disabled in Claude settings, or when connecting: “Claude hooks are disabled or managed by policy. No settings were changed.”Hooks are turned off by policy
“Your HTTP hook allowlist needs review. TokenNibbler will not change security policy.”The hook allowlist
Needs attention, with “Cannot parse Claude settings. The existing file has not been changed.”The settings file can’t be read
Connected for Bash onlyUpdate the connection
Local service unavailableLocal service unavailable
“Verify shortening: Claude Code (hook) did not come back shortened”Still stuck?

Why it happens: The hook is installed, but no result has reached TokenNibbler yet. Results arrive when Claude Code uses its Bash, PowerShell, Grep or Glob tools, or an MCP tool.

  1. In Claude Code, run a build or a test that finishes without errors. Claude Code reports a failed command through a different hook event, so failed commands don’t reach TokenNibbler.
  2. If nothing arrives, restart Claude Code and run a Bash command again.
  3. In Claude Code, type /hooks and check that the TokenNibbler PostToolUse hook is listed.
  4. Update Claude Code. TokenNibbler uses Claude Code’s HTTP hooks, so it needs a current release.

Why it happens: Your Claude Code settings turn all hooks off ("disableAllHooks": true) or allow only hooks managed by your organisation ("allowManagedHooksOnly": true). TokenNibbler never overrides your hook policy, so it changes nothing.

  1. Open the settings file shown in Settings › Integrations, usually %USERPROFILE%\.claude\settings.json (on a Mac, ~/.claude/settings.json).
  2. If you set disableAllHooks yourself and want hooks on, remove that line and save.
  3. If your organisation manages hooks, ask your administrator to allow TokenNibbler’s hook.
  4. Select Connect Claude Code again.

Why it happens: Your settings have an allowedHttpHookUrls list, and TokenNibbler’s address isn’t on it. TokenNibbler never edits security settings, so it asks you to review the list.

  1. Add TokenNibbler’s address to allowedHttpHookUrls in your Claude Code settings:

    "allowedHttpHookUrls": ["http://127.0.0.1:17841/tokennibbler/v1/post-tool-use"]

    Keep any entries already in the list. If your organisation manages the list, ask your administrator to add it.

  2. Select Connect Claude Code again.

Why it happens: TokenNibbler reads settings.json as plain JSON. Comments, trailing commas or a typo stop it, and it then leaves the file exactly as it is. You may also see “Unsupported hooks format. No settings were changed.” if the hooks section isn’t in the shape Claude Code uses.

  1. Open the file shown in Settings › Integrations.
  2. Fix the JSON: remove comments and trailing commas, and check every bracket is closed.
  3. Select Connect Claude Code again.

If you see “Claude settings changed while saving. Please retry.”, another program saved the file at the same moment. TokenNibbler stopped so it wouldn’t overwrite that change. Select Connect Claude Code again.

Why it happens: An earlier connection covers Bash only. The current hook also covers PowerShell, Grep, Glob and MCP tools.

  1. On the Claude card, select Update. The Bash part keeps working until you do.

Why it happens: TokenNibbler’s local service on 127.0.0.1:17841 isn’t running, so neither agent’s hook can reach it. Your agents carry on with their original output meanwhile.

  1. If you see “The local port is already in use. Close the other app using port 17841 and restart TokenNibbler.”, close the other program using that port, for example a second copy of TokenNibbler, then restart TokenNibbler. TokenNibbler never stops other programs or moves to another port by itself.
  2. If you see “The local hook service could not start. Restart TokenNibbler.”, quit TokenNibbler from its tray icon (the menu bar on a Mac) and open it again.

Select Run checks in Settings › Integrations, copy the results, and send them with a screenshot of the Claude card through the contact page. Troubleshooting: start here lists what else helps. To see what the connection changes, read Connect Claude Code.