> For the complete documentation index, see [llms.txt](https://docs.zerve.ai/zerve-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zerve.ai/zerve-docs/security/security.md). Agents can also search and read this documentation through its [MCP server](https://docs.zerve.ai/zerve-docs/~gitbook/mcp).

# Security overview

How Zerve keeps your data, code and credentials secure.

Zerve is built for teams whose data is sensitive and whose work is regulated. This page summarizes how it protects your data, code and credentials.

## Your data can stay in your environment

Zerve can run inside your own AWS, Google Cloud or Azure account, or on your own infrastructure, including air-gapped environments. When it does, your code, data, results and deployed apps all run and stay there. See [Deployment options](https://docs.zerve.ai/zerve-docs/self-hosting/self-hosting.md).

When Zerve runs in your AWS account, it manages your resources through a **single IAM role**. Zerve can only use the role with an external ID matching your organization, and its permissions are limited to resources whose names start with `zerve`. See [What Zerve can access in your AWS account](https://docs.zerve.ai/zerve-docs/self-hosting/aws-access.md).

## Each notebook's data is kept separate

When a block runs, it receives credentials that only give access to **its own notebook's** stored data. Code in one notebook can't read another notebook's results, even within the same organization.

## Credentials are stored in a vault

| What                                   | How it's protected                                                                                                                                                                                        |
| -------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Constants and secrets**              | Every value, including non-secret constants, is stored in a secure vault (HashiCorp Vault), not in Zerve's regular database. Secrets are hidden in the interface but available to code when a block runs. |
| **Data connection credentials**        | Passwords, tokens and keys are never shown back to users. They're only passed to code when a block runs.                                                                                                  |
| **Model provider API keys**            | Stored in your organization's vault and never shown again                                                                                                                                                 |
| **Channel and MCP server credentials** | Stored in the vault, not with their settings                                                                                                                                                              |

Agents never ask you to type a secret into a conversation. When a superagent needs a credential, you enter it in a secure form. See [Decisions and recommendations](https://docs.zerve.ai/zerve-docs/superagents/decisions-and-recommendations.md).

## Access is controlled

* **Roles and permissions** control what each member can do. See [Members and roles](https://docs.zerve.ai/zerve-docs/administration/members-and-roles.md).
* **Privacy settings** control who can see each piece of work. Everything is private by default. See [Sharing and privacy](https://docs.zerve.ai/zerve-docs/administration/sharing-and-privacy.md).
* **Assets can't be used outside their organization.**
* **Single sign-on** lets you manage access through your identity provider. See [SAML single sign-on](https://docs.zerve.ai/zerve-docs/administration/saml-sso.md).
* **Multi-factor authentication** is available for every account.

## You control the AI models

* **Admins choose** which model providers and models can be used. See [Model settings](https://docs.zerve.ai/zerve-docs/administration/model-settings.md).
* **Use your own provider accounts**, under your own agreements with them. See [Bring your own API keys](https://docs.zerve.ai/zerve-docs/administration/bring-your-own-api-keys.md).
* **Route everything through your own gateway**, so model traffic never goes anywhere you haven't approved. This is available with [self-managed installs](https://docs.zerve.ai/zerve-docs/self-hosting/self-managed.md).

## Agents ask before acting

Zerve's agents ask before deploying, before irreversible changes, and before using tools you've marked as needing approval. See [Agent approvals and governance](https://docs.zerve.ai/zerve-docs/security/agent-approvals-and-governance.md).

## Channels are closed by default

Nobody can message a superagent through Slack, Telegram or another channel until you allow them by name. See [Channels](https://docs.zerve.ai/zerve-docs/superagents/channels.md).

## Deployments

Deployed apps and APIs use HTTPS. When Zerve runs in your AWS account, you can limit which IP addresses can reach them. See [AWS QuickStart](https://docs.zerve.ai/zerve-docs/self-hosting/aws-quickstart.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.zerve.ai/zerve-docs/security/security.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
