---
title: Documentation
description: 'Guides and reference for varsafe: the CLI, the dashboard, agents over MCP, CI pipelines and the security model.'
sidebar:
  label: Introduction
  order: 0
  icon: house
---

varsafe is the secrets manager for teams that ship with agents. Your secrets and environment variables live in one place. Every developer, pipeline and coding agent gets the access its work needs, and every read and change is recorded.

The everyday workflow is one command. `varsafe run` hands the secrets to your process as it starts, so there is no `.env` file to share, commit or leak:

```bash
curl -fsSL https://varsafe.dev/install.sh | bash   # install the CLI
varsafe login                                      # approve in your browser; pick Full access
varsafe use                                        # pick the project and environment
varsafe set DATABASE_URL                           # store a secret (masked prompt)
varsafe run -- npm run dev                         # your app starts with its secrets
```

**Five minutes, start to finish:** [Getting started](/getting-started) takes you from a new account to an app running on injected secrets.

<AgentSetup>
Copy this prompt into it, and it follows [the setup instructions](https://varsafe.dev/agent-setup/prompt.md) to connect itself to varsafe over MCP. Your browser asks you to approve what it may reach.
</AgentSetup>

## Start with what you are doing

**[I write code](/getting-started)**

Install the CLI, store a secret, and run your app with it. Nothing is written to disk.

**[I have a .env file today](/guides/migrate-from-dotenv)**

Move its values into varsafe, check your app still starts, then delete the plaintext file.

**[I use a coding agent](/guides/mcp)**

Connect Claude Code, Cursor, Codex or VS Code. The agent works on a grant you approve, and the audit log shows what it did.

**[I run pipelines](/guides/ci)**

Give each pipeline a token scoped to one environment. The deploy step receives its secrets as it runs.

**[I manage a team](/guides/team)**

Invite people with a role, protect production, and remove access in one step when someone leaves.

**[I review security](/reference/security)**

What is encrypted, who can reach what, what the audit log records, and what we do not claim.

## Why teams use it

<LinkList
  items={[
    {
      title: 'No plaintext files',
      href: '/guides/encrypted-env',
      description:
        'When a tool insists on a `.env` file, write it to RAM and delete it when the command ends, or commit it encrypted so that only people who may read the environment can open it.',
    },
    {
      title: 'Access that matches the job',
      href: '/reference/roles',
      description:
        'Roles for people, scoped tokens for pipelines, and grants for agents. A protected environment such as production takes changes only from owners and admins, and from tokens created for it.',
    },
    {
      title: 'A record of every read',
      href: '/reference/operations',
      description:
        'Who read or changed what, from which client and when. The audit log is append-only: no user can edit or delete it.',
    },
    {
      title: 'Offboarding in one step',
      href: '/guides/team',
      description:
        'Removing a member revokes their CLI logins, agent grants and the API tokens they created.',
    },
    {
      title: 'Versions you can roll back',
      href: '/guides/dashboard#undo-a-change',
      description:
        'Each environment keeps its last 10 saved versions. Compare environments, preview a diff, and restore.',
    },
    {
      title: 'Sign in your way',
      href: '/reference/authentication',
      description:
        'GitHub, GitLab, Google and Bitbucket, passkeys and two-factor authentication, and single sign-on on the Team plan.',
    },
  ]}
/>

## See it in the dashboard

The dashboard is where you invite members, set roles, protect environments and read the audit log.

<img src="/images/dashboard.png" alt="The varsafe dashboard overview" />

The dashboard overview: secrets by environment, your teams and projects, and shortcuts for the common tasks.

## When you need the details

<LinkList
  cols={3}
  items={[
    {
      title: 'Core concepts',
      href: '/concepts',
      description: 'Teams, projects, environments and how a secret is addressed.',
    },
    {
      title: 'CLI reference',
      href: '/cli',
      description: 'Every command and flag, generated from the binary.',
    },
    {
      title: 'REST API reference',
      href: '/api',
      description: 'Every public route, rendered from the OpenAPI specification.',
    },
    {
      title: 'Troubleshooting',
      href: '/guides/troubleshooting',
      description: 'Find your symptom or the exact message the CLI printed, and the fix.',
    },
    {
      title: 'Security model',
      href: '/reference/security',
      description: 'What is encrypted, who can see what, and what we do not claim.',
    },
    {
      title: 'Changelog',
      href: '/changelog',
      description: 'What changed in each CLI release and on the platform.',
    },
  ]}
/>
