1Password Developer Environments
Manage project secrets and environment variables using TypeScript (Bun) and Python SDK tooling.
Feature Overview
1Password Developer Environments enable multi-variable secret synchronization, masking, and export across project workspaces.
When to Use
- Creating, listing, inspecting, updating, exporting, and deleting developer environments
- Exporting environments to
.env, Docker-compatible, orop://reference formats - Programmatic secret resolution via
SecretsManagerin Python services and TypeScript tools
Tool Setup
CLI Tools Setup (TypeScript)
cd tools
bun run create -- --help
bun run list -- --help
bun run show -- --help
bun run update -- --help
bun run export -- --help
bun run delete -- --help
CLI Tools Setup (Python SDK)
cd tools-python
uv sync
uv run op-env-create --help
uv run op-env-list --help
uv run op-env-show --help
uv run op-env-update --help
uv run op-env-export --help
uv run op-env-delete --help
When to Use SDK vs CLI
Use TypeScript (Bun) tools for rapid local scripting and CLI workflows. Use Python SDK (SecretsManager) for direct application integration and Python automated services.
SecretsManager (Python SDK)
from op_env.secrets_manager import SecretsManager
async def main():
sm = await SecretsManager.create()
api_key = await sm.get("op://Production/API/key")
env = await sm.resolve_environment("my-app-prod", "Production")
Environment Workflow
1. Create Environment
bun run create --name my-app-dev --vault Development --env-file .env.dev
2. List Environments
bun run list --vault Development
3. Show Environment Details
bun run show --name my-app-dev --reveal
4. Update Environment
bun run update --name my-app-dev --set "NEW_KEY=value" --merge-file .env.updates
5. Export Environment
bun run export --name my-app-dev --format op-refs --output .env.template
6. Delete Environment
bun run delete --name my-app-dev --force
Environment Secret Reference
Reference environment variables with op://<vault>/<env-item>/<var-name>.
Integration Patterns
- With op run (recommended): Export environment as
op://reference template and launch withop run --env-file=.env.template -- npm start. - With op inject: Populate runtime config files before container launch.
- With Docker Compose: Populate environment variables using
./templates/docker-compose-env.yaml. - In CI/CD (GitHub Actions): Inject environment secrets into workflows via
1password/load-secrets-action.
Current Environments (Barbosa Account)
Documented project environments and vault assignments are detailed in ./references/environments/inventory.md.
Completion Evidence
- Validated environment creation or export.
- Verified secret resolution matching
.env.template.