> ## Documentation Index
> Fetch the complete documentation index at: https://docs.monk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Credentials

> What Monk asks for, where you enter it and how to create each credential

Monk runs your app in your own cloud account, so it needs credentials for that account and for any services your app uses. You don't have to set anything up in advance. When a plan needs a credential, Monk opens a form in the [local dashboard](https://docs.monk.io/getting-started/local-dashboard.md) and you enter it there.

## Where credentials go

* You type, upload or authorize credentials in a local dashboard form, never in the chat. The coding agent never sees the values.
* Monk stores them in your OS keychain (or an encrypted file where there is no keychain) and pushes them to your cluster when a deployment needs them.
* You can see what is stored, without the values, under **Vault** in the local dashboard.

See [Security](https://docs.monk.io/concepts/security.md) for the full picture.

## Clouds

> [card] [AWS](https://docs.monk.io/getting-started/credentials-aws.md)
>
> IAM access key ID and secret access key

> [card] [Google Cloud](https://docs.monk.io/getting-started/credentials-gcp.md)
>
> Service account JSON key file

> [card] [Microsoft Azure](https://docs.monk.io/getting-started/credentials-azure.md)
>
> Service principal, as fields or an SDK auth JSON file

> [card] [DigitalOcean](https://docs.monk.io/getting-started/credentials-digitalocean.md)
>
> Personal access token

> [card] [Hetzner](https://docs.monk.io/getting-started/credentials-hetzner.md)
>
> API token

## Services

Monk asks for these the first time a plan uses the service.

| Service | What the form asks for | How you provide it |
| - | - | - |
| Netlify | Personal access token | Sign in to Netlify from the form, or paste a token |
| MongoDB Atlas | Service account client ID and secret, optional organization name | Sign in to Atlas from the form, or paste the values |
| Vercel | Personal access token, optional team or org ID | [Account → Tokens](https://vercel.com/account/tokens) |
| Auth0 | Domain, Management API client ID and secret | Applications → create a machine-to-machine app |
| Redis Cloud | Account key, user key and a database password | Account settings → API keys. The form can generate the password |
| Cloudflare | Account ID and API token | [API tokens](https://dash.cloudflare.com/profile/api-tokens) with Cloudflare Tunnel (Edit) and DNS (Edit) |
| Neon | API key | Neon console → Account settings → API keys |
| Stripe | Secret key, optional publishable key | [Stripe API keys](https://dashboard.stripe.com/apikeys) |
| DigitalOcean Spaces | Access key and secret key, optional region and endpoint | DigitalOcean control panel → Spaces access keys |
| GitHub | Fine-grained personal access token | See [GitHub for CI/CD](#github-for-ci-cd) |
| Slack | Incoming webhook URL | See [Slack for Watcher alerts](#slack-for-watcher-alerts) |

### Netlify

The form offers a Netlify sign-in. If you prefer a token, create a personal access token in Netlify under **User settings → Applications** and paste it.

### MongoDB Atlas

The form offers an Atlas sign-in. To enter values instead, create a service account in your Atlas organization's access manager and paste its client ID and client secret. The organization name is optional.

### Vercel

Create a token at [vercel.com/account/tokens](https://vercel.com/account/tokens). Add a team ID if you deploy to a team.

### Auth0

In your Auth0 tenant, create a machine-to-machine application authorized for the Management API. Enter the tenant domain, client ID and client secret.

### Redis Cloud

Copy the account key and a user key from the API keys page in Redis Cloud. Choose a database password or let the form generate one.

### GitHub for CI/CD

[CI/CD setup](https://docs.monk.io/guides/cicd.md) creates a GitHub Actions workflow in your repository, so it needs a GitHub token.

1. In GitHub, open **Settings → Developer settings → Personal access tokens → Fine-grained tokens** ([direct link](https://github.com/settings/personal-access-tokens/new)).
2. Give it access to the repository you deploy from.
3. Grant these repository permissions: **Actions** (read and write), **Secrets** (read and write), **Environments** (read and write), **Contents** (read) and **Metadata** (read).
4. Generate the token and paste it into the form when Monk asks. You can also set a default repository in `owner/repo` form.

### Slack for Watcher alerts

[Watcher](https://docs.monk.io/guides/watcher-and-alerts.md) posts alerts to Slack through an incoming webhook.

1. Go to [api.slack.com/apps](https://api.slack.com/apps) and create an app from scratch in your workspace.
2. Open **Incoming Webhooks** and turn them on.
3. Click **Add New Webhook to Workspace** and pick the channel for alerts.
4. Copy the webhook URL (it starts with `https://hooks.slack.com/services/`) and paste it into the form when Monk asks.

Slack only receives alerts. You can't chat with Monk or approve anything from Slack.

## Managing credentials

Ask your agent, and Monk opens the form when one is needed:

```
/monk update my AWS credentials
```

```
/monk what credentials do I have configured
```

```
/monk delete my Azure credentials
```

## Good practice

* Create a dedicated user, service account or service principal for Monk instead of using your personal or root credentials. Each cloud page lists the permissions it needs.
* Rotate keys on your usual schedule, and straight away if one may have leaked.
* Turn on MFA for the accounts that manage these credentials.

> [card] [First deployment](https://docs.monk.io/getting-started/first-deployment.md)
>
> See where the credentials form appears in a deployment


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.