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.3.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.3.0.tar.gz | 103.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| optio_grok-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 174.5 kB
Release files / optio_grok-0.3.0.tar.gz
| Download URL | optio_grok-0.3.0.tar.gz |
|---|---|
| Size | 103.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
49b83f60af07e5c342f395d74c7c827dc74217bae2f6c8fb62493285c74e46d2
|
|
BLAKE2b-256 checksum How to use checksums |
abb601384bfef97c6cf3425f8c43fd69be9bb83cc485178d5a69e17bd02f729d
|
| 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.3.0-py3-none-any.whl
| Download URL | optio_grok-0.3.0-py3-none-any.whl |
|---|---|
| Size | 71.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2e33e22bb085ffe1fe097b34ce07d80f0e4486c034e835466ae9209e7be2c24e
|
|
BLAKE2b-256 checksum How to use checksums |
e9d402c838e0b55fda32500820ddbd8d66c2f16b564f51d88d7fab4a60d33766
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|