# Private repositories, the GitHub App and plan limits

Give Repowise Hosted read access to private repositories, tell the indexing app from the PR bot app, link GitHub to a Google or email account, and see what each plan covers.

Repowise Hosted reads public repositories with no setup. A private repository
needs two things: a paid plan, and a GitHub App that can see the repository.
This page covers both, and the limits each plan sets.

## Two GitHub Apps

Repowise uses two separate GitHub Apps. Install the one you need, or both,
selecting the same repositories.

| App | Install | What it does | Permissions |
|---|---|---|---|
| `repowise-app` (indexing) | [github.com/apps/repowise-app](https://github.com/apps/repowise-app/installations/new) | Lists your private repositories on the dashboard and clones them for indexing. Push events keep the index current | Read-only |
| `repowise-bot` (PR bot) | [github.com/apps/repowise-bot](https://github.com/apps/repowise-bot/installations/new) | Reviews pull requests: the `Repowise review` check, one comment, and threads on lines | Contents read, Pull requests write, Metadata read, Issues write, Checks write |

The PR bot's one-click coverage setup also asks for Contents write and
Workflows write, to open a draft pull request that adds the coverage upload.
Everything else works without them.

Neither app changes your code or merges anything. The PR bot writes only its
own comments and check runs. See [data handling](https://docs.repowise.dev/hosted/data-handling)
for what is kept after indexing.

## Index a private repository

1. **Be on a paid plan.** Pro, Teams or Enterprise. A Teams member's private
   repositories come through the team's plan.

2. **Install the indexing app.** Open
   [github.com/apps/repowise-app](https://github.com/apps/repowise-app/installations/new),
   or **Settings, GitHub** on [repowise.dev](https://repowise.dev/settings?tab=github),
   and select the repositories.

3. **Pick the repository.** The [dashboard](https://repowise.dev/dashboard)
   lists every repository the app can see. Select it and index.

**Organization repositories.** If you are not an owner of the organization,
GitHub turns your install into a request for an owner to approve under the
organization's settings, GitHub Apps. The repository appears once they
approve.

## Signed up with Google or email

An account made with Google or email and password has no GitHub identity, so
Repowise cannot match it to your GitHub App installations: the PR bot cannot
claim your install and does not review your pull requests. Click
**Connect GitHub** on the dashboard banner or in
[PR bot settings](https://repowise.dev/settings/bot), or link it under
[Settings, GitHub](https://repowise.dev/settings?tab=github). It keeps your
existing account, repositories and billing. A GitHub account already linked to
another Repowise account cannot be linked again: sign in with it directly.

## What each plan covers

Current prices: [repowise.dev/pricing](https://repowise.dev/pricing). Plan
comparison for buyers: [Plans](https://docs.repowise.dev/for-teams/plans).

| | Free | Pro | Teams | Enterprise |
|---|---|---|---|---|
| Indexed repositories | 2 | 5 | 25, pooled across the team | Unlimited |
| Private repositories | No | Yes | Yes, through one org install | Any git host, set up for your deployment |
| Repository size | Up to 250 MB | Up to 5 GB | Up to 5 GB | Set up for your deployment |
| Commit history analysed | 500 most recent commits | Full | Full | Full |
| Re-index on every push | No | Yes | Yes | Yes |
| AI answers and chat | 10 answers a month | From credits | From the team's credit pool | Custom volume |
| PR bot AI review | No | From credits | From the team's credit pool | Custom volume |
| Security suite | No | Yes | Yes, plus rollup, audit trail, compliance and alert webhooks | Yes |

The deterministic layers (graph, git history, ownership, decisions, health,
dead code) and semantic search are on every plan. A Free repository showing a
Repowise badge in its README re-indexes every week.

## When you hit a limit

| You see | Cause | What to do |
|---|---|---|
| A prompt to upgrade when adding a repository | The plan's repository limit is reached | Remove a repository, or move to a plan with more |
| "Private repositories need a paid plan" | A private repository on Free | Start a plan, or index public repositories |
| The repository is too large | Over the plan's size limit | A paid plan raises it to 5 GB |
| AI answers stop on Free | The 10 answers this month are used | Wait for the next month, or start a plan |
| A light review on a pull request | Credit ran out, or the repository's monthly AI limit | Add credits, or raise the limit in the bot settings ([details](https://docs.repowise.dev/hosted/bot#ai-review-budget)) |

## Next
- [Quickstart: Repowise Hosted](https://docs.repowise.dev/getting-started/quickstart-hosted) adds the repository and connects your agent.
- [Teams](https://docs.repowise.dev/hosted/teams) shares private repositories with your team through one install.
- [Troubleshooting](https://docs.repowise.dev/hosted/troubleshooting) covers a private repository that does not appear.
