# Troubleshooting Repowise Hosted

Fix the common Repowise Hosted problems, from sign-in and stuck indexes to private repositories, MCP sign-in, missing tools, rejected keys and plan limits.

Find the symptom, then follow its fix. Your coding agent can run most of these
checks for you: paste the hosted setup line again and it reports what is
missing.

```text
Set up Repowise for this repository. Follow https://docs.repowise.dev/hosted/setup.md
```

## Sign-in

- **Pick the method you signed up with.** Accounts sign in with GitHub,
  Google, or email and password. If the dashboard shows none of your
  repositories, sign out and sign in with the method you used first.
- **"That GitHub account is already linked to another Repowise account."**
  Sign in with that GitHub account directly.
- **The CLI cannot open a browser** (SSH, a container, a cloud agent): run
  `repowise login --device`, open the printed URL on any device and enter the
  code.

## Indexing is stuck or failed

The repository card on the [dashboard](https://repowise.dev/dashboard) shows
`indexing`, `ready`, `stale` or `error`.

| You see | What to do |
|---|---|
| `indexing` for a long time | A typical repository takes about 10 minutes and a large one longer. Progress is shown phase by phase; you get an email when it finishes. |
| `error` | Click re-sync once. If it fails again, email [hello@repowise.dev](mailto:hello@repowise.dev) with the repository name. |
| `stale` | New commits landed since the last index. Paid plans re-index on every push; on Free, click re-sync. |
| Re-sync refused | Index starts are capped per day, and one index runs per repository at a time. Wait for the running one, or try again tomorrow. |
| The repository is too large | The plan's size limit applies: see [plan limits](https://docs.repowise.dev/hosted/private-repos#what-each-plan-covers). |

## A private repository does not appear

- **The indexing app is not installed, or cannot see the repository.** Install
  [repowise-app](https://github.com/apps/repowise-app/installations/new) and
  select the repository, or add it to an existing install from its
  configuration page on GitHub.
- **The organization has not approved it.** If you are not an owner of the
  organization, your install is a request waiting for an owner under the
  organization's settings, GitHub Apps. It appears once they approve.
- **You are on the Free plan.** Private repositories need a paid plan.
- **You signed up with Google or email.** Connect GitHub so Repowise can match
  your installs: see [signed up with Google or email](https://docs.repowise.dev/hosted/private-repos#signed-up-with-google-or-email).
- **The PR bot app is installed, not the indexing app.** They are two apps:
  `repowise-bot` reviews pull requests, `repowise-app` reads code to index it.

## The MCP sign-in does not finish

- **Restart the client first.** Most clients load MCP servers only at
  startup. In Claude Code, restart once, then run `/mcp`, choose `repowise` and
  approve Repowise in the browser. In Cursor, click **Needs login** next to the
  server.
- **The browser approved, but the client still asks.** Remove the client under
  **Connected apps** on [Settings, Coding agents (MCP)](https://repowise.dev/settings?tab=editor),
  then connect again.
- **The client has no browser sign-in.** Use an API key: see
  [Advanced: API keys](https://docs.repowise.dev/hosted/connecting-ide#advanced-api-keys).

## Agent shows no tools

The agent answers by searching files itself, or lists no `repowise` tools.

1. Confirm the entry exists. In Claude Code:

   ```bash
   claude mcp list
   ```

   You should see `repowise` (or `repowise-hosted`) with an
   `api.repowise.dev` URL.
2. Check the URL. It is `https://api.repowise.dev/mcp/<owner>/<name>` for a
   repository you indexed, spelled as on GitHub.
3. Restart the client once and approve Repowise again.
4. Check the index is `ready`. Until the first index finishes, the tools say
   the repository is still building.
5. On a workspace URL, two members sharing an alias, or a member aliased
   `all`, make every call fail: see
   [across a whole workspace](https://docs.repowise.dev/hosted/connecting-ide#across-a-whole-workspace).

## An API key is rejected

- **The key was revoked or mistyped.** Generate a new one on
  [Settings, Coding agents (MCP)](https://repowise.dev/settings?tab=editor).
  Keys start with `rw_live_` and are shown once.
- **The variable does not reach the client.** A `REPOWISE_API_KEY` set in one
  shell reaches the editor only when the editor starts from that shell, or
  from the system environment after a restart.
- **The header is wrong.** Send `Authorization: Bearer <key>`.
- **A write tool is refused.** Tools that change data, such as `decision`,
  need a key with the `write` scope: see
  [decisions with your agent](https://docs.repowise.dev/hosted/agent-decisions).

## The PR bot posted no comment

Every cause and its fix is in
[no comment appeared](https://docs.repowise.dev/getting-started/quickstart-bot#no-comment-appeared).
Start from the title of the `Repowise review` check on the pull request.

## You hit a plan limit

| You see | Fix |
|---|---|
| Adding a repository asks you to upgrade | The plan's repository limit is reached. Remove one, or move to a plan with more. |
| "Private repositories need a paid plan" | Start a plan, or index public repositories. |
| AI answers stop on Free | The monthly allowance is used. It resets next month, or start a plan. |
| A team invitation cannot be sent or accepted | Every seat is filled. The team owner adds seats on [repowise.dev/team](https://repowise.dev/team). |
| A light review on a pull request | Credit ran out, or the repository's monthly AI limit: see [AI review budget](https://docs.repowise.dev/hosted/bot#ai-review-budget). |

Limits per plan: [private repositories and plan limits](https://docs.repowise.dev/hosted/private-repos#what-each-plan-covers).
Still stuck: [hello@repowise.dev](mailto:hello@repowise.dev).

## Next
- [Connect your agent](https://docs.repowise.dev/hosted/connecting-ide) has the exact config for each client.
- [Private repositories and plan limits](https://docs.repowise.dev/hosted/private-repos) explains the two GitHub Apps.
- [Quickstart: PR bot](https://docs.repowise.dev/getting-started/quickstart-bot) covers the bot's own checks.
