optio-grok
Run Grok Build (xAI) as an optio task — either as a local subprocess
or on a remote host over SSH — with the interactive TUI embedded in the
optio dashboard via an iframe widget served by ttyd.
Install
pip install optio-grok
Requires Python 3.11+. Pulls optio-core, optio-host, optio-agents,
asyncssh, and aiohttp.
What it does
Grok Build is a near-twin of Claude Code. optio-grok adapts the
optio-claudecode machinery: it launches grok inside a detached tmux
session, serves the TUI over ttyd, and coordinates with the host
harness through the optio.log keyword channel (STATUS / DELIVERABLE /
DONE / ERROR). The agent reads its task from an AGENTS.md file planted
in the workdir.
Isolation
Each task runs under an isolated HOME (<workdir>/home) with
GROK_HOME pointing at <workdir>/home/.grok. Grok ships a
claude-compat layer, so CLAUDE_CONFIG_DIR is pinned at
<workdir>/home/.claude to keep the operator's real ~/.claude
configuration, hooks, and instructions from leaking into the task.
--no-leader is always passed so tasks never share a grok backend.
Status
Stage 0 (MVP): iframe/ttyd mode, local host. Resume, seeds, conversation mode, and filesystem isolation arrive in later stages.
Metadata
Release files for optio-grok 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| optio_grok-0.4.0.tar.gz | 111.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| optio_grok-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 186.5 kB
Release files / optio_grok-0.4.0.tar.gz
| Download URL | optio_grok-0.4.0.tar.gz |
|---|---|
| Size | 111.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
06368ca03a6a33d203eb0f6574b34f01a50d502769c6c9e5a5c4e0ea23fdbd76
|
|
BLAKE2b-256 checksum How to use checksums |
fd913ab6d6d89307082f9eda0bfbdae69c38cc2a8f881cf877d0e8e9ceccee67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / optio_grok-0.4.0-py3-none-any.whl
| Download URL | optio_grok-0.4.0-py3-none-any.whl |
|---|---|
| Size | 75.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d36ae787ba7b140d7da76f8cfba3e64c2a114f5343c624f62fedb1748863cfba
|
|
BLAKE2b-256 checksum How to use checksums |
89167d95a8a3af5a13b3abea0d7aa13ac9971453fef9feac164a19fbe560d7a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|