Single-agent task runner for hardened Podman containers
Project description
terok-executor
One command to run an AI coding agent inside a hardened, rootless Podman container.
terok-executor builds the container, launches the agent against
the directory you point it at, and keeps real credentials on the
host. Use it on its own as a CLI, or import its AgentRunner from
Python when you want library-grade control.
Quick start
pip install terok-executor
terok-executor run claude ~/my-workspace
The first run interactively offers any missing prerequisites — sandbox
services, container images, agent credentials.
Mandatory items (services, images) block the launch if
declined; optional ones (SSH key, auth) print the consequence and
proceed.
Individual steps would be:
terok-executor setup # install sandbox services + build base images
terok-executor auth claude # authenticate (OAuth or API key)
terok-executor run claude <dir> -p "Fix the bug" # run the agent with an initial prompt
Use as a library
from terok_executor import AgentRunner
runner = AgentRunner()
runner.run_headless(
agent="claude",
repo=".",
prompt="Fix the failing test in test_auth.py",
max_turns=25,
)
AgentRunner exposes four launch methods — run_headless,
run_interactive, run_web, run_tool — all with the same
hardening guarantees.
Supported agents
| Agent | Auth | Description |
|---|---|---|
| Claude Code | OAuth*, API key | Anthropic Claude Code |
| Codex | OAuth*, API key | OpenAI Codex CLI |
| Vibe | API key | Mistral Vibe |
| OpenCode | API key | Generic LLM endpoint driver — bundled defaults for Helmholtz Blablador, KISSKI AcademicCloud, and your own endpoint |
| gh | OAuth, API key | GitHub CLI |
| glab | API key | GitLab CLI |
| CodeRabbit | API key | CodeRabbit (sidecar tool) |
| SonarCloud | API key | SonarCloud scanner (sidecar tool) |
* Claude and Codex OAuth are experimental, and support must be explicitly allowed in the config file.
terok-executor agents lists the live roster (add --all to
include the tool entries).
Where it sits in the stack
terok-executor is the per-task layer. Above it, terok composes many concurrent runs across many projects. Below it, terok-executor delegates the host-side security boundary (terok-sandbox): the credential vault, the git gate, the egress firewall hooks, the systemd service lifecycle.
Commands
| Command | Description |
|---|---|
run |
Launch an agent (headless, interactive, or web) |
setup |
Bootstrap sandbox services + container images |
uninstall |
Remove sandbox services + container images |
auth |
Authenticate a provider |
agents |
List the agent roster |
build |
Build base + agent images explicitly |
run-tool |
Run a sidecar tool (CodeRabbit, SonarCloud) |
list |
List running containers |
stop |
Stop a running container |
show-config |
Print the effective SandboxConfig as YAML (diffable across orchestrators) |
vault |
Vault management (start, stop, status, install, routes) |
Config override
Two top-level flags (precede the subcommand, like docker --config):
--config PATH— read thisconfig.ymlinstead of the layered system/user paths (setsTEROK_CONFIG_FILEfor the invocation).--raw— ignore anyconfig.yml; use sandbox/executor dataclass defaults only.
Higher-layer orchestrators (such as terok) typically construct a SandboxConfig from their own resolution chain and pass it into the executor as a library; the public expectation is that, for the fields they own in config.yml, the resulting sub-environment matches what standalone terok-executor would produce against the same file. Use show-config on both sides to verify.
Development
See the Developer Guide.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file terok_executor-0.1.0.tar.gz.
File metadata
- Download URL: terok_executor-0.1.0.tar.gz
- Upload date:
- Size: 198.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d15c167406dc0dfa0380ff163c936710c385a863c203b06247ad7f4139534ae
|
|
| MD5 |
4fa5f8ee3e6253a5fd959fe368ee019f
|
|
| BLAKE2b-256 |
d1ebc4ea1c943861504eff64edca3a9a00cddb6c20267fe6ed5991aae4a62af6
|
Provenance
The following attestation bundles were made for terok_executor-0.1.0.tar.gz:
Publisher:
release.yml on terok-ai/terok-executor
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
terok_executor-0.1.0.tar.gz -
Subject digest:
1d15c167406dc0dfa0380ff163c936710c385a863c203b06247ad7f4139534ae - Sigstore transparency entry: 1711925679
- Sigstore integration time:
-
Permalink:
terok-ai/terok-executor@24f9ae3549d7e309e06e18dabcf6ece2b27e798d -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/terok-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@24f9ae3549d7e309e06e18dabcf6ece2b27e798d -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file terok_executor-0.1.0-py3-none-any.whl.
File metadata
- Download URL: terok_executor-0.1.0-py3-none-any.whl
- Upload date:
- Size: 260.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ebd87bc0753e28f2f01cd3284e9af18340d451dbcedb62330bc900c5c30fde6a
|
|
| MD5 |
b16f137635d64cf87bbf1adcb8837bbe
|
|
| BLAKE2b-256 |
3ff808c8cca94b8d963b1f6e57e54f6c35fa4319d1b99f02047ec7a61b3faa06
|
Provenance
The following attestation bundles were made for terok_executor-0.1.0-py3-none-any.whl:
Publisher:
release.yml on terok-ai/terok-executor
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
terok_executor-0.1.0-py3-none-any.whl -
Subject digest:
ebd87bc0753e28f2f01cd3284e9af18340d451dbcedb62330bc900c5c30fde6a - Sigstore transparency entry: 1711925718
- Sigstore integration time:
-
Permalink:
terok-ai/terok-executor@24f9ae3549d7e309e06e18dabcf6ece2b27e798d -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/terok-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@24f9ae3549d7e309e06e18dabcf6ece2b27e798d -
Trigger Event:
workflow_dispatch
-
Statement type: