# Your own key

> Use your own OpenRouter key or AWS account in Sypnia Cloud, and what changes when you do.

Applies to: Sypnia Cloud (paid service).  
Source: https://ai.docs.sypnia.com/models/your-own-key/

For agents: BYOK in Cloud: ai provider-keys add openrouter (key stored encrypted, write-only, never shown again) or bedrock (an IAM role in your AWS account that Sypnia AI assumes with an external id). Per project; routes can use byok:<provider>/<model>. With your own key Sypnia charges nothing for the call (no credits, no fee); only your provider bills you; Sypnia AI still applies routes, limits, safety, traces. Zero-retention rule is yours to choose. Removing the key: calls on routes using it fail with provider_key_failed unless they have fallbacks.

In Sypnia Cloud you can bring your own OpenRouter key or AWS account, for example to use a contract you already have with a provider.

**OpenRouter**

```bash
npx @sypnia/ai provider-keys add openrouter
```

The command asks for the key without showing it. It is stored encrypted and can never be read back, only replaced or removed.

**Amazon Bedrock**

```bash
npx @sypnia/ai provider-keys add bedrock --role arn:aws:iam::123456789012:role/sypnia-ai --region us-east-1
```

Sypnia AI assumes that role in your AWS account with an external id the command prints; the role needs only `bedrock:InvokeModel` and `bedrock:InvokeModelWithResponseStream`.

Then point a route at it with `byok:`:

`sypnia.toml`

```toml
[ai.tasks.allergen-answer]
model = "byok:openrouter/<model id>"
fallbacks = ["default"]
```

## What changes

|                                        | With Sypnia's accounts       | With your own key                                |
| -------------------------------------- | ---------------------------- | ------------------------------------------------ |
| Who bills the model                    | Sypnia, in credits           | your provider, directly                          |
| Routes, limits, safety, traces         | yes                          | yes, the same                                    |
| Zero-retention rule                    | always                       | yours to keep: `zero_retention: true` on the key |
| What Sypnia Cloud charges for the call | the model's price in credits | nothing: no credits, no fee                      |

Calls through your own key cost nothing on Sypnia: only your provider bills you, at its prices. They still show in your usage, with zero credits, so you see them beside the rest.

A key belongs to one project. If it is removed or stops working, calls on routes that use it fail with `provider_key_failed`, or move to their fallbacks.
