Public wrapper repository for verified Grok CLI experiments.
Bilingual docs, a portable Telegram helper, and a pinned snapshot of the Sunwood Grok CLI fork.
grok-cli-sandbox is the public-facing wrapper repository around a tested Grok CLI workspace.
- The actual CLI source lives in the
./grok-clisubmodule. - This root repository adds curated docs, verification notes, helper glue, and brand assets.
- The included snapshot is pinned to a published branch in
Sunwood-ai-labs/grok-cliso fresh clones remain reproducible.
This repository is intentionally scoped as a reproducible sandbox and documentation surface, not as the canonical upstream for the CLI itself.
-
Clone the repository with submodules.
git clone --recurse-submodules https://github.com/Sunwood-ai-labs/grok-cli-sandbox cd grok-cli-sandbox
-
Configure your xAI settings in
~/.grok/user-settings.json.{ "baseURL": "https://api.x.ai/v1", "defaultModel": "grok-code-fast-1", "apiKey": "<your xAI API key>" } -
Use the pinned CLI snapshot from the submodule.
cd .\grok-cli grok --help grok models grok -p "Reply with only pong." --format json
-
Build the docs site locally when you want the published experience.
cd ..\docs npm install npm run assets:build npm run docs:build
The curated verification pages cover one Windows sandbox session dated 2026-03-24.
- Headless prompt execution with JSON event output
- Session continuation with
--session latest - Tool families such as
search_web,search_x,task,delegate, anddelegation_read - Image generation and archived media output
- Telegram remote-control pairing and helper-driven file operations
These are documented as dated observations, not evergreen guarantees for every future CLI build.
GROK_COMMANDS_AND_OUTPUTS.md is now reflected in the curated docs as a command-oriented summary.
- Environment capture:
bun --version->1.3.11,node --version->v24.12.0,grok --version->1.0.0-rc5 - Local verification:
bun install,bun run build,bun run typecheck, andbunx vitest run src/grok/client.test.tscompleted successfully with 11 tests passing - Headless flow:
grok -p "Reply with only pong." --format jsonemittedstep_start/text/step_finish, and--session latestcorrectly recalledNEBULA-47 - Tooling: the raw log includes
search_web,task,delegate,delegation_read, andsearch_xexamples with captured JSON tool events - Media and Telegram: the archive records
generate_image,generate_video, helper startup, pairing approval, chat roundtrips, file edits, and Telegram-specific test coverage
For the curated version of those command results, see Command Highlights.
- Docs site
- Getting Started
- Repository Layout
- Verification Summary
- Command Highlights
- Telegram Helper Guide
- Evidence & Archive Notes
- Archived Raw Session Log
| Path | Purpose |
|---|---|
grok-cli |
Pinned CLI source snapshot from Sunwood-ai-labs/grok-cli |
docs |
Bilingual VitePress docs and repository guides |
assets |
Sample media plus reusable repo identity assets |
telegram-remote-bridge.mjs |
Portable helper for Telegram remote control |
GROK_COMMANDS_AND_OUTPUTS.md |
Archived raw notebook from the original sandbox run |
The helper in telegram-remote-bridge.mjs now resolves paths from the current checkout instead of hardcoding one local workspace.
bun .\telegram-remote-bridge.mjsOptional overrides are available if you want to move the log or pairing files:
GROK_SANDBOX_ROOTGROK_SANDBOX_REPO_DIRGROK_SANDBOX_LOG_PATHGROK_SANDBOX_PAIR_PATH
The full guide lives in docs/telegram-helper.md.
- Repo-local
.grok/,.env*, pairing files, and helper logs are git-ignored. - Curated docs intentionally avoid publishing live bot tokens, user IDs, or local database paths.
- Local runtime artifacts remain local-only and are described in docs/evidence.md as unpublished evidence.
Generated sample image preserved from the verified session:
- This repo documents a tested sandbox snapshot. It does not replace the upstream CLI repository.
- The
node dist/index.jscaveat documented in the guides was observed on Nodev24.12.0during the 2026-03-24 verification session. - The archived raw session log is intentionally kept as an appendix and may include Japanese text and terminal-dependent encoding artifacts.
