TokenCap
FeaturesDocsCLIPricingAbout
Demo CLI
TokenCap emblem

TokenCap

Coding context at the speed of thought.
Built for the LLM era.

Product

  • Features
  • Docs
  • Changelog

Resources

  • Terms
  • Privacy
  • Security

Community

  • •GitHub
  • •Discord
© 2026 TokenCap. Built for developers.

Documentation

v2.4.0

infoIntroductiondownloadInstallationrocket_launchGetting StartedterminalCLI ReferencesettingsConfigurationenhanced_encryptionSecret RedactionbuildTroubleshooting
codeGitHubforumDiscord

Secure Token Management for Modern Teams

TokenCap is an obsidian-grade CLI tool designed to simplify how developers manage environment secrets and API tokens. It provides a local-first, low-latency interface to securely inject, rotate, and redact sensitive information across your entire stack.

bolt

Built for Performance

TokenCap operations complete in sub-10ms, ensuring zero impact on your build pipelines.

Installation

Install the global CLI using your preferred package manager.

Terminal
>npm install -g tokencap

Getting Started

Initializing your first workspace takes seconds. Run the init command to create your local vault.

auto_awesome

Step 1: Init

Create your project-specific encryption key and .tokencap registry.

tokencap init
inventory_2

Step 2: Make

Scan your environment and safely package tokens into local storage.

tokencap make

CLI Usage

Powerful commands for high-performance development workflows.

Watching filesystem...
>tokencap watch --debounce 3000
[14:02:11] Watching .env files for changes...
[14:02:45] Found change in .env.local
[14:02:45] SUCCESS Tokens updated and encrypted.
>tokencap config

Open the global interactive configuration panel.

Configuration

Customize TokenCap using a .tokencaprc file in your root directory.

JSON
{
  "version": "2.4.0",
  "encryption": {
    "algorithm": "aes-256-gcm",
    "key_provider": "local-keyring"
  },
  "profiles": {
    "development": {
      "auto_rotate": true,
      "mask_secrets": true,
      "allowed_hosts": ["localhost", "*.test"]
    },
    "production": {
      "mfa_required": true,
      "audit_logs": "/var/logs/tokencap.log"
    }
  },
  "redaction": {
    "patterns": ["password", "secret", "token_key"]
  }
}

Secret Redaction

Never leak a token in your logs again. TokenCap intercepts stdout and masks sensitive data patterns automatically.

RAW INPUT
sk_live_51...9923
arrow_forward
REDACTED
[REDACTED_STRIPE_KEY]

Troubleshooting

Command 'tokencap' not foundexpand_more
Ensure your global npm bin directory is in your system PATH. For macOS/Linux, check echo $PATH.
Keyring access deniedexpand_more
TokenCap requires permissions to write to your OS-level keychain. On Linux, ensure libsecret-1-dev is installed.
On this page
IntroductionInstallationGetting StartedCLI UsageConfigurationSecret RedactionTroubleshooting
New Release

V2.4.0 adds native VS Code extension support.

Check changelog
upgrade