# Quickstart: Repowise Hosted

Go from sign-up to your agent's first Repowise answer on repowise.dev, by adding a repository and connecting your coding agent.

Repowise Hosted indexes your repository on repowise.dev, keeps it current on
every push, and serves it to your coding agent over MCP. Setup has two halves:
add a repository, then connect your agent. Do both. The index is what your
agent reads, and the connection is what makes it read it; people who finish
both halves keep using Repowise far more than people who stop after one.

The quickest route is one line to your coding agent, from inside the
repository. It signs you in, indexes the repository and connects itself, and
hands you the few steps only a person can do. No key goes into the chat.

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

Paste the same line again later: it checks the setup and finishes what is
missing.

## By hand

1. **Sign up.** Open [repowise.dev](https://repowise.dev/login?mode=signup) and
   sign in with GitHub, Google, or email and password. Signing up is free.

2. **Add a repository.** On the [dashboard](https://repowise.dev/dashboard),
   index a repository:

   - **Public repository:** paste its GitHub URL and submit.
   - **Private repository:** install the read-only indexing GitHub App
     ([github.com/apps/repowise-app](https://github.com/apps/repowise-app/installations/new)),
     then pick the repository from the list. Private repositories need a paid
     plan. See [private repositories and plan limits](https://docs.repowise.dev/hosted/private-repos).

   GitLab.com projects work too: connect GitLab under
   [Settings](https://repowise.dev/settings?tab=connections) first.

3. **Wait for the index.** The repository card shows `indexing` with live,
   phase-by-phase progress, then `ready`. A typical repository takes about 10
   minutes, longer for a large one, and you get an email when it finishes. Go on
   to the next step while it runs.

4. **Connect your agent.** Your agent signs in to Repowise in the browser
   (OAuth) the first time it connects, so there is no key to copy. The URL for
   one repository is `https://api.repowise.dev/mcp/<owner>/<name>`.

   ### Claude Code

   ```bash
   claude mcp add --transport http repowise https://api.repowise.dev/mcp/<owner>/<name>
   ```

   Restart Claude Code once, then run `/mcp`, choose `repowise` and approve
   Repowise in the browser. You should see `repowise` listed as connected.

   ### Claude.ai or ChatGPT

   Add a custom connector with the account-wide URL, which reaches every
   repository you can read:

   ```text
   https://api.repowise.dev/mcp
   ```

   Click **Connect** and approve Repowise in the sign-in window. Step by step:
   [Claude.ai and ChatGPT connector](https://docs.repowise.dev/agents/claude-connector).

   ### Other agents

   Cursor, VS Code, Codex, Windsurf and the rest each take the same per-repository
   URL. The exact config for each is on
   [Connect your agent](https://docs.repowise.dev/hosted/connecting-ide) and in the
   [agent guides](https://docs.repowise.dev/agents).

5. **Ask the first question.** Once the index is `ready`, paste one of the
   prompts the app shows under **Try one of these first**. For a repository
   `<owner>/<name>` they read:

   ```text
   Use Repowise to give me a tour of <owner>/<name>: what it does, its main modules, and where I should start reading.
   ```

   ```text
   Use Repowise to find the riskiest files to change in <owner>/<name>, and tell me why.
   ```

   ```text
   Use Repowise to find code in <owner>/<name> that nothing calls any more and is safe to delete.
   ```

   When the index already knows a hotspot or a recent decision, the app swaps in
   a prompt that names that file or decision. Your agent should call a Repowise
   tool such as `get_overview` or `get_answer` and answer with specific files.
   If it falls back to searching files itself, the connection is not live: see
   [troubleshooting](https://docs.repowise.dev/hosted/troubleshooting#agent-shows-no-tools).

## Advanced: API keys

A client that cannot do the browser sign-in uses an API key from
[Settings](https://repowise.dev/settings?tab=editor), kept in an environment
variable and sent as `Authorization: Bearer`. The setup per client is in
[Connect your agent](https://docs.repowise.dev/hosted/connecting-ide#advanced-api-keys).

## Next
- [Quickstart: PR bot](https://docs.repowise.dev/getting-started/quickstart-bot) reviews every pull request against the same index.
- [Teams](https://docs.repowise.dev/hosted/teams) shares the repositories with your teammates.
- [Hosted overview](https://docs.repowise.dev/hosted/overview) lists everything Hosted adds.
