Skip to content

Introduction

kiln is a command-line tool for managing encrypted environment variables using age encryption. It provides a simple, offline-first approach to secret management for development teams.

kiln encrypts your environment variables into files that can be safely stored alongside your code. Each team member has their own encryption key and can only access the environments they’re authorized for.

Instead of sharing .env files or depending on external secret services, kiln lets you:

  • Encrypt secrets locally with no external dependencies
  • Commit encrypted files safely to version control
  • Control access per environment (dev, staging, production)
  • Run applications with automatically injected variables

kiln uses public-key cryptography where each person has a key pair. Environment files are encrypted for specific recipients, so only authorized team members can decrypt them.

Core workflow:

  1. Generate encryption keys for team members
  2. Define who can access which environments in kiln.toml
  3. Encrypt variables into environment-specific files
  4. Run applications with kiln run to inject decrypted variables

Version control friendly - Encrypted files are safe to commit and share

Team collaboration - Role-based access using existing SSH keys or new age keys

Zero infrastructure - No external services or databases to maintain

Simple workflow - Familiar command-line interface that integrates with existing tools

kiln is ideal for teams that want:

  • Secrets to travel with code in version control
  • Offline deployment capabilities
  • Simple access control without complex infrastructure
  • A lightweight alternative to hosted secret management services

Ready to secure your environment variables?

Install kiln 5-Minute Tutorial Learn Core Concepts