Skip to content
项目

关于

Git signing and SSH for agents, with expressive policies and keys that never leave Turnkey.

开发工具

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
+3
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文
tk

Git signing and SSH for agents, with keys in Turnkey's secure enclaves.

tk lets an agent sign Git commits and open SSH connections without a private key on its machine. The key stays in Turnkey's secure enclaves. Turnkey enforces expressive policies on every signature and logs every approval.

  • Git signing: tk acts as Git's SSH or GPG signing program, so git commit -S and git verify-commit work unchanged.
  • SSH: tk ssh agent serves Turnkey keys on a standard SSH_AUTH_SOCK, so ssh, git push, and git clone over SSH work unchanged.

Local agents

For an agent on your laptop, for example Claude Code or Codex in a terminal:

  • No key for the agent to read: the signing and SSH keys stay in Turnkey's secure enclaves, not in ~/.ssh or a GnuPG keyring that the agent could read or copy.
  • Its own identity: the agent signs and connects with its own key, not yours, so its commits are attributable and its access can be revoked without touching your keys.
  • Policy and audit: expressive Turnkey policies decide which keys the agent may use, and Turnkey logs every signature and approval.

Background agents

For an unattended agent in CI, a container, or a VM, the agent never holds a long-lived credential:

  • Expiring session keys: the agent generates its own API key, and a separate provisioner registers it with an expiry and renews it.
  • Signing broker: a separate process holds the signing credential. The agent gets only a Unix socket and a public key.
  • Policy-scoped signing: each agent can sign only with the keys a policy names. Revoking its API key cuts it off at once.

Getting started

Paste this into your agent:

Install the Turnkey tk CLI with
`curl --proto '=https' --tlsv1.2 -LsSf https://raw.githubusercontent.com/tkhq/tk/main/install.sh | sh`.
Install the tk skills with `tk skills install --into <your skills directory>`,
read the installed turnkey-tk/SKILL.md, and walk me through bootstrapping my
Turnkey organization at https://app.turnkey.com.

Manual installation

curl --proto '=https' --tlsv1.2 -LsSf https://raw.githubusercontent.com/tkhq/tk/main/install.sh | sh

We recommend installing Cosign 2.4.2 or later first so the installer verifies release signatures.

To verify a release archive and its matching .sigstore.json bundle downloaded from Releases manually:

cosign verify-blob-attestation tk-aarch64-apple-darwin-vX.Y.Z.tar.gz \
  --bundle tk-aarch64-apple-darwin-vX.Y.Z.tar.gz.sigstore.json \
  --type slsaprovenance1 \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com \
  --certificate-identity https://github.com/tkhq/tk/.github/workflows/release.yml@refs/tags/vX.Y.Z

Docs

Git signing and SSH:

  • Git signing: sign commits and tags with SSH or GPG keys held in Turnkey
  • SSH: registered keys and the SSH agent
  • GPG signing: OpenPGP keys, the GPG agent, and GitHub setup

Running background agents:

  • Sessions: expiring keys registered by a provisioner
  • Secrets: inject credentials into an agent at startup

Foundations:

Contact us

tk is part of Turnkey's agent auth beta. To ask a question or tell us what your agents need, reach us at turnkey.com/agent-auth-beta.

For the thinking behind this project, see this thread.

探索相关项目

加载中…