> ## Documentation Index
> Fetch the complete documentation index at: https://www.1password.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Use 1Password with AI agents

> Set up 1Password for coding agents on your machine, agents in a sandbox or pipeline, and personal agents that sign in to websites.

AI agents need API keys, tokens, and passwords to get work done. 1Password gives them that access without the secret ever landing in a prompt, a config file, or plaintext on disk.

## Choose your setup

> [card] [Coding agents on your machine](#coding-agents-on-your-machine)
>
> Claude Code, Cursor, Codex, Kiro, and other agents in your editor or terminal.

> [card] [Agents in a sandbox or pipeline](#agents-in-a-sandbox-or-pipeline)
>
> Agents that run on their own, like in NVIDIA OpenShell or GitHub Actions.

> [card] [Personal agents that sign in to websites](#personal-agents-that-sign-in-to-websites)
>
> Agents that browse for you and need to sign in to your accounts.

## Coding agents on your machine

Store your project secrets in a [1Password Environment](https://www.1password.dev/environments.md), then connect your agent to it. 1Password mounts the secrets as a local .env file, so nothing sits in plaintext on disk or in your MCP config and you can't commit a secret by accident. The agent can still read the secrets in that file.

> [card] [Environments MCP server](https://www.1password.dev/environments/mcp-server.md)
>
> Connect Claude Code, Codex, Cursor, Kiro, or any MCP client. Start here.

> [card] [Claude Code plugin](https://www.1password.dev/environments/claude-plugin.md)
>
> One install: MCP server plus the Environments agent skill.

> [card] [Cursor plugin](https://www.1password.dev/environments/cursor-plugin.md)
>
> One install: MCP server, agent skill, and the .env validation hook.

Also useful:

* [Mount a local .env file](https://www.1password.dev/environments/local-env-file.md) so tools read secrets from 1Password instead of a plaintext file.
* [Validate .env files with the agent hook](https://www.1password.dev/environments/agent-hook-validate.md) before your agent runs shell commands.
* [Secure MCP server config files](https://www.1password.dev/get-started/secure-ai-access.md#secure-mcp-server-config-files) by replacing hardcoded tokens in `mcp.json`.
* [Sign in to AI CLIs with your fingerprint](https://www.1password.dev/cli/shell-plugins.md) using shell plugins for Claude Code, Codex, Gemini, GitHub Copilot, and more.

## Agents in a sandbox or pipeline

When an agent runs on its own, give it only the access it needs, for only as long as it needs it.

> [card] [NVIDIA OpenShell (beta)](https://www.1password.dev/environments/nvidia-openshell.md)
>
> Time-limited access for sandboxed agents. The agent only ever sees placeholders.

> [card] [Credential Broker (public preview)](https://www.1password.dev/brokered-access.md)
>
> Agents in GitHub Actions or other OIDC workflows get secrets without a stored token.

> [card] [Service accounts](https://www.1password.dev/service-accounts/get-started.md)
>
> A scoped token for automated workflows that need specific vaults or Environments.

Building your own agent? See [Integrate 1Password SDKs with AI agents](https://www.1password.dev/sdks/ai-agent.md).

## Personal agents that sign in to websites

[1Password for Agents](https://support.1password.com/1password-for-agents/) lets a personal agent sign in to websites for you. When the agent needs to sign in, 1Password shows you which agent is asking. After you approve, 1Password fills the username, password, and one-time password into the agent's browser. The agent never sees the credentials.

> [card] [Get started with 1Password for Agents](https://support.1password.com/1password-for-agents/)
>
> Connect 1Password to a supported agent and approve sign-in requests.

> [card] [Build an integration with Browserbase](https://docs.browserbase.com/integrations/1password/agentic-autofill)
>
> For partners: let agents running in Browserbase sign in to websites.

## Get help

Join the discussion in our [Developer community](https://www.1password.dev/community.md) or ask in [Developer Slack](https://www.1password.dev/joinslack).


## Related topics

- [Tutorial: Integrate 1Password SDKs with AI agents](https://www.1password.dev/sdks/ai-agent.md)
- [Secure secrets for AI agents and tools](https://www.1password.dev/get-started/secure-ai-access.md)
- [Use the 1Password agent hook to validate local .env files from 1Password Environments](https://www.1password.dev/environments/agent-hook-validate.md)
