Configuration
Primary config file:
~/.config/tnk/tnk.toml
Key settings
server_port- inference API port (default9931)workspace_root- project root for sandbox mapping (default~/code)default_provision_profile- sandbox profile default (pi)default_engine_runtime- inference runtime key (llama)default_model- model name injected into sandboxes asTNK_MODEL_NAME(unset by default)
toml
# tnk configuration
# API port for inference server
server_port = 9931
# Root used for project-to-sandbox mapping (must NOT be your home directory)
workspace_root = "~/code"
# Default sandbox profile
default_provision_profile = "pi"
# Inference runtime: "llama"
default_engine_runtime = "llama"
# Model name injected into sandboxes as TNK_MODEL_NAME
# default_model = "ai-fast"default_model is required for profiled sessions (tnk run, tnk sandbox start with a provision profile, tnk sandbox shell --profile ...): tnk fails fast with a config error instead of provisioning a sandbox against a missing model.
Environment overrides
Set these to override file values:
TNK_SERVER_PORTTNK_WORKSPACE_ROOTTNK_PROVISION_PROFILETNK_ENGINE_RUNTIMETNK_MODEL
Security-relevant guidance
- Keep
workspace_rootinside a dedicated subtree such as~/code. - Never set
workspace_rootto$HOME. - Prefer explicit profile declarations in automation (
--profile ...) over implicit defaults.
Inspect effective values:
bash
tnk config showSee also: Installation · Security · Troubleshooting