Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tnk

tnk (experimental)

Zero-trust per-project sandbox VMs for AI agent runtimes.

License: MIT Crates.io GitHub Release X Follow

Quick Start


Quick Start

tnk demo

brew tap tappunk/tap              # or: cargo install tnk
brew trust tappunk/tap            # required on recent Homebrew versions
brew install tappunk/tap/tnk
tnk init                          # populate ~/.config/tnk from tnk-specs
tnk config init                   # create ~/.config/tnk/tnk.toml

Point default_model at the model your host inference server serves:

# ~/.config/tnk/tnk.toml
default_model = "ai-fast"

Then start and enter a project sandbox:

cd ~/code/myproject
tnk sandbox start                 # boots VM, provisions the default profile
tnk sandbox shell

The agent runs in an isolated sandbox that mounts only the project workspace. Host secrets and keys stay out of scope. Inference runs on the host (tnk does not manage the engine); the sandbox gets endpoint and model coordinates via environment variables (TNK_INFERENCE_URL, TNK_MODEL_NAME, TNK_ENGINE_RUNTIME).

What tnk does

  • Sandbox isolation: one per-project Lima VM, mounting only the workspace directory
  • Provisioning: declarative per-profile provisioning from sandbox.d/provision.d
  • Session audit trail: optional NDJSON logs for forensic review
  • Machine-readable output: --output json|ndjson on list commands

Commands

tnk                # list sandboxes
tnk run            # start project sandbox
tnk sandbox shell  # enter project sandbox
tnk shutdown       # stop all sandboxes
tnk doctor         # health checks
tnk config show    # inspect effective config

Config

Config lives at ~/.config/tnk/tnk.toml.

Security

Agents execute package installers, shell commands, and network clients with broad filesystem access. tnk keeps that execution inside isolated sandbox VMs, mounts only the project workspace, and exposes inference endpoints via explicit environment variables.

About

Zero-trust sandbox for local LLM inference and AI coding agents

Resources

Security policy

Stars

4 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages