# Connections

> Connect model providers, GitHub, HTTP APIs, MCP servers and email, what each gives a run, how keys are kept and what is verified.

Source: https://werker.cloud/docs/connections (updated 2026-12-01)

Werker uses your own keys. A connection is a key or token for a model
provider, GitHub, an HTTP API or a remote MCP server, and belongs to
one workspace. Most have been checked with synthetic tests rather than
live accounts.

## Adding one

1. Open **Admin → Connections** and choose **Add connection**, or open
   the command palette (Ctrl K, or ⌘K on a Mac) and choose **Connect a
   service…**.
2. Pick a service. A listed one fills in its own address, so it asks
   only for a name and a key.
3. Werker checks it and saves it. You can test it again, reconnect or
   disconnect it from the list.

Enter keys in that form, never in a conversation. Leaving the key
blank when editing keeps the stored one.

Checking TypeSafe makes a small request that can cost money.

## Model providers

OpenAI, Anthropic, Google Gemini, OpenRouter, Mistral, Groq, xAI,
Fireworks and TypeSafe. Only OpenAI and Fireworks have been used with
a real key. Those two also report which models a key can use; for the
others every catalogue model is assumed available.

- A run uses the workspace's oldest connection that offers its model.
- A run whose model its connection does not offer is refused when it
  is queued.
- Limit a workspace to chosen models in **Admin → Models**.
- A custom endpoint changes where a provider is reached. It does not
  add a new provider.

### The classifier

The first connection that offers a classifier model also becomes the
workspace's classifier, which answers yes or no, choice and score
questions for
[workflow decisions](agents-and-workflows.md#workflow-steps) and
[scores](costs-and-traces.md#scores). Change it in **Admin → Models**,
under **Decision model**.

## GitHub

- **GitHub App:** **Admin → Connections → GitHub App** makes a private
  App on your GitHub account, then GitHub asks which repositories it
  may use. It can read metadata, checks and statuses, and write
  contents and pull requests.
- **Token:** paste a GitHub token. You can limit it to named
  repositories; the token's own permissions are still the most it can
  do.

Use the App for Git in hosted [sandboxes](sandboxes.md): a personal
token is never given to one. Tokens were tested against a local
fixture, not a live account. Git with the App was checked with scripts
against Daytona and Docker on 2026-11-28.

The App is always made under your personal account, so it cannot be
installed on an organisation's repositories
([#58](https://github.com/werker-ai/werker/issues/58)). Deleting one
on GitHub leaves Werker's connection behind, so delete that in **Admin
→ Connections** too.

## Other services

| Kind                 | What it gives a run                            | Checked                                                                                                                                                                         |
| -------------------- | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| HTTP API             | Requests to one saved address                  | Presets such as Slack, Discord, GitLab, Cloudflare and Vercel, only for rejecting a wrong key                                                                                   |
| Remote MCP server    | Its tools                                      | Context7, DeepWiki, Svelte and Cloudflare Docs need no key and listed their tools on 2026-11-17. Linear, Stripe and GitHub's server were checked only for rejecting a wrong key |
| Web search and pages | Tavily, Brave, Kagi, Firecrawl, Exa and Linkup | One search and one page read passed on 2026-11-23                                                                                                                               |

Any other address can be added as an HTTP API or an MCP server.
Requests stay on the saved address, so an agent cannot send a key
somewhere else.

## Email

One SMTP server for the whole instance, in **Admin → Email**. Nothing
but a test email is sent with it yet.

1. **Verify a domain** with your provider, such as
   [Resend](https://resend.com/docs/dashboard/domains/introduction).
2. **Make a key** for sending from that domain.
3. **Fill in Admin → Email.** Resend, Brevo and Mailgun fill in their
   own server. With Resend the username is filled in too, and the key
   is the password. The sender is an address at the verified domain,
   such as `noreply@mail.example.com`.
4. **Save**, then **Send test** to yourself.

On 2026-11-30 a test email sent through Resend arrived.

## Who can use a connection

Every run in the workspace, within what it is given. Connections for
one factory only are not built
([#15](https://github.com/werker-ai/werker/issues/15)).

## How keys are kept

- The web app seals a key and cannot read it back. Only the worker,
  which holds the install's master key, opens it.
- A key is never shown again, and cannot be moved to another
  workspace.
- Sandboxes do not receive keys. On Docker with gVisor a gateway
  outside the sandbox adds the key to the outgoing call. On the hosted
  providers a sandbox gets no provider keys, and work that needs them
  waits.
- Code in a sandbox can still use the access it was given.

On Coolify the web app and worker share one container, so both hold
the master key ([self-hosting](self-hosting.md#on-coolify)).

More is in [security](https://werker.cloud/security) and the
[engineering docs](engineering/integrations.md).

## Not built

- Signing in to services with OAuth, and a hosted app catalogue
  ([#14](https://github.com/werker-ai/werker/issues/14)).
- Messages from Werker when a run finishes or needs you
  ([#39](https://github.com/werker-ai/werker/issues/39)). An agent can
  send one itself through a connected service.
