SDKs & Integrations
Official SDKs and integrations for KeyEnv.
SDKs & Integrations
Use KeyEnv in your applications with our official SDKs and integrations.
SDKs
Node.js SDK
TypeScript/JavaScript SDK for server-side apps
Python SDK
Python SDK with full type annotations
Go SDK
Go SDK with full type safety
Rust SDK
Rust SDK with async/await support
Java SDK
Java SDK with Java 11+ and async support (Beta)
PHP SDK
PHP SDK for PHP 8.0+ applications (Beta)
Ruby SDK
Ruby SDK for Ruby 3.0+ applications (Beta)
.NET SDK
.NET SDK for .NET 6.0+ with async patterns (Beta)
Runtimes
CI/CD Integrations
GitHub Action
Inject secrets into GitHub Actions workflows
Secret Scanner Action
Scan for hardcoded secrets in your codebase
Bitbucket Pipelines
Inject secrets into Bitbucket Pipelines
Serverless
AWS Lambda Layer
Pre-built layer for Lambda functions
Azure Functions
Use KeyEnv with Azure Functions
Google Cloud Functions
Use KeyEnv with Cloud Functions
Netlify Build Plugin
Auto-inject secrets during Netlify builds
Framework Integrations
Next.js
Server Components, API Routes, and Vercel deployment
Django
Django settings.py integration with environment-aware config
Laravel
Service Provider, Facade, and Artisan commands for Laravel
Spring Boot
Auto-configuration, @Value injection, and ConfigurationProperties
Rails
Rails initializer setup with credentials and database.yml integration
Platform Integrations
Kubernetes (ESO)
Sync secrets to K8s via External Secrets Operator
Docker
Use KeyEnv with Docker and docker-compose
Vercel
Deploy to Vercel with KeyEnv secrets
Railway
Sync secrets to Railway projects
When to Use What
| Use Case | Recommended |
|---|---|
| Local development | CLI (keyenv pull, keyenv run) |
| Node.js/TypeScript apps | Node.js SDK |
| Python apps | Python SDK |
| Java apps | Java SDK |
| PHP apps | PHP SDK |
| Ruby apps | Ruby SDK |
| .NET/C# apps | .NET SDK |
| Next.js apps | Next.js integration (Node.js SDK) |
| Django apps | Django integration (Python SDK) |
| Laravel apps | Laravel integration (PHP SDK) |
| Spring Boot apps | Spring Boot integration (Java SDK) |
| Rails apps | Rails integration (Ruby SDK) |
| ASP.NET Core apps | .NET SDK |
| Go apps | Go SDK |
| Rust apps | Rust SDK |
| Bun apps | Node.js SDK or CLI |
| Deno apps | CLI or direct API |
| GitHub Actions (inject secrets) | GitHub Action |
| GitHub Actions (scan for secrets) | Secret Scanner Action |
| Bitbucket Pipelines | Bitbucket Pipe |
| Other CI/CD | CLI |
| AWS Lambda | Lambda Layer |
| Azure Functions | Azure Functions integration |
| Google Cloud Functions | Cloud Functions integration |
| Netlify | Netlify Build Plugin |
| Vercel | Next.js integration or Node.js SDK |
| Scripts & automation | SDK or CLI |
| Docker builds | CLI or GitHub Action |
| Kubernetes | External Secrets Operator (ESO) integration |
| Security scanning | Secret Scanner Action or CLI (keyenv scan) |
Authentication
All SDKs use service tokens for authentication. Create a token in the KeyEnv dashboard:
- Go to Settings > Service Tokens
- Click Create Token
- Select scope (project-specific recommended)
- Copy the token and store it securely
# Set as environment variable
export KEYENV_TOKEN="your-service-token"