@kraki/tentacle
v0.4.9
Published
Kraki agent bridge — the arm that connects your coding agent to the head
Readme
@kraki/tentacle
CLI bridge that connects your coding machine to Kraki.
Preview:
@kraki/tentacleis still early-stage. Expect breaking changes while the core flows stabilize.
@kraki/tentacle runs next to your coding agent, connects to a Kraki relay, and lets you watch and steer sessions from another browser or device.
Right now the main supported agent flow is GitHub Copilot CLI.
Install
Run it once with npx:
npx @kraki/tentacleOr install it globally:
npm i -g @kraki/tentacle
krakiRequirements
- GitHub Copilot CLI installed on the coding machine
gh auth logincompleted- A browser or phone to connect to the Kraki web app
Quick start
- Run
npx @kraki/tentacleorkraki - Follow the setup prompts in the terminal
- By default it connects to the hosted relay
- Scan the QR code or open the web app to connect your browser or phone
The hosted web app lives at:
https://kraki.corelli.cloud
What tentacle handles
Beyond bridging agent events, tentacle is responsible for several things that used to live on the relay:
- Sequence numbers and timestamps — assigned locally by tentacle, not by the relay
- Message buffering — tentacle buffers messages and handles replay when devices reconnect
- Session lifecycle — session create, update, and close are managed here
- Auto-approval — tools on a local allowed list are approved automatically without user interaction
- Encryption — all outgoing messages are encrypted before leaving the machine
The relay is a thin forwarder. Tentacle and the frontend own the application logic.
Useful commands
kraki # start the tentacle / setup flow
kraki status # show daemon + relay status
kraki connect # generate a fresh QR code / pairing link
kraki stop # stop the local daemonUse your own relay
Start a relay with @kraki/head:
npx @kraki/head
# or
npm i -g @kraki/head
kraki-relayThen point tentacle setup at your own relay URL instead of the hosted default.
Package naming
@kraki/tentacleinstalls thekrakiCLI@kraki/headinstalls thekraki-relayCLI
Links
- Main docs:
https://github.com/corelli18512/kraki/blob/main/README.md - Security model:
https://github.com/corelli18512/kraki/blob/main/SECURITY.md
