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.1
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.1.tar.gz | 111.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| optio_grok-0.4.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 186.8 kB
Release files / optio_grok-0.4.1.tar.gz
| Download URL | optio_grok-0.4.1.tar.gz |
|---|---|
| Size | 111.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3454046cc03633c9cf46d60bc4030cd2363d5628e251c5dbd9ba259001bfc8e1
|
|
BLAKE2b-256 checksum How to use checksums |
24169c4d5037b2e42a2e192097b142ca6979380a996c427aa22a4e62d903426f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Release files / optio_grok-0.4.1-py3-none-any.whl
| Download URL | optio_grok-0.4.1-py3-none-any.whl |
|---|---|
| Size | 75.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6d8d0dbc5f188f887dd61e5d2fa9ce660fd6fc0ba4966e1ca8bd34ed693ee92d
|
|
BLAKE2b-256 checksum How to use checksums |
bcf5eee810588389c927768248d2a525e22e5dc21eab573c4926c10704200703
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|