Skip to main content

Klavex CLI — pull environment variables into a process without writing secrets to disk.

Project description

klavex

CLI for Klavex. Pulls environment variables from your team's vault and injects them into a child process — secrets never touch disk.

pip install klavex
klavex login
klavex run -- npm start

See IMPLEMENTATION.md for the design.

Commands

Command Status
klavex login v0.1
klavex logout v0.1
klavex whoami v0.1
klavex status v0.1
klavex projects v0.2
klavex envs <project> v0.2
klavex vars -e <env> v0.2
klavex run -e <env> -- <cmd> v0.3 (blocked on backend reveal endpoint)
klavex export -e <env> v0.4
klavex use -p <project> -e <env> v0.4

Development

pip install -e ".[dev]"
klavex --version
pytest
ruff check .
mypy

Override the API URL for staging or local:

export KLAVEX_API_URL=http://localhost:8000

Agents & CI (non-interactive auth)

For an agent seat (minted in the dashboard) or a CI runner, there's no browser for klavex login. Pass the token via the environment instead — it takes precedence over the keychain and needs no OS keychain at all:

export KLAVEX_TOKEN=kx_agent_...        # the token shown once when you mint the seat
klavex run -e env_xxx -- npm test       # scoped to exactly the envs you granted

Use environment IDs (env_xxx) or a committed .klavex pin for agents — name lookups hit team-level endpoints that scoped agent tokens can't read.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

klavex-0.1.5.tar.gz (26.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

klavex-0.1.5-py3-none-any.whl (23.2 kB view details)

Uploaded Python 3

File details

Details for the file klavex-0.1.5.tar.gz.

File metadata

  • Download URL: klavex-0.1.5.tar.gz
  • Upload date:
  • Size: 26.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for klavex-0.1.5.tar.gz
Algorithm Hash digest
SHA256 57320dc4ae88bb7da386aabd79976bcc19bdbcd6f450300250f4a39b4bb37562
MD5 6445582464323c9e9eb63d039acdd719
BLAKE2b-256 0a40f5cbbbf3f025aaacf6db59b463bf90929e18dd432844c5c918c0c90955a0

See more details on using hashes here.

File details

Details for the file klavex-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: klavex-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 23.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for klavex-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0b71e6a2e938c4feb67302c0ca819e10eddb3dfd6b8886ef4645fb1921d3aaaa
MD5 7501adecbf823c0e3c67f5116990570f
BLAKE2b-256 ad794cdd7395580a5475534a2ca73bf1a966ffc70a02549cd1ba1cb3f4ac7f4e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page