Experimental Turnkey auth workspace centered on the tk CLI.
tk is focused on general agent authorization, attribution, and credential management with Turnkey backed keys.
Warning:
tkis experimental and has not been audited.
tk/: CLI crate and end-user command docsauth/: shared auth library used by the CLI
From the root of this repo:
cargo install -p tkThe installed binary is named tk.
tk config
tk ssh public-key
tk ssh git-sign
tk ssh agenttk resolves configuration in this order:
- Environment variables
- Global config file
- Built in defaults
The default global config file path is:
~/.config/turnkey/tk.tomlSet TURNKEY_TK_CONFIG_PATH to override the config file location.
You can inspect or update config with:
tk config list
tk config get turnkey.organizationId
tk config set turnkey.organizationId "<org-id>"
tk config set turnkey.apiPublicKey "<api-public-key>"
tk config set turnkey.apiPrivateKey "<api-private-key>"
tk config set turnkey.privateKeyId "<ed25519-private-key-id>"
tk config set turnkey.apiBaseUrl "https://api.turnkey.com"tk config list prints the fully resolved effective configuration, so environment-variable overrides appear in its output. Secret values such as turnkey.apiPrivateKey are redacted in both config list and config get.
export TURNKEY_ORGANIZATION_ID="<org-id>"
export TURNKEY_API_PUBLIC_KEY="<api-public-key>"
export TURNKEY_API_PRIVATE_KEY="<api-private-key>"
export TURNKEY_PRIVATE_KEY_ID="<ed25519-private-key-id>"
export TURNKEY_API_BASE_URL="https://api.turnkey.com" # optionalThese environment variables override values stored in the global config file. This can be helpful for CI.