Fast CLI for routing code and media work through the right LLM path: direct API calls when available, multi-model councils when you need agreement, and browser recipes for web-only models such as ChatGPT Pro.
Yoetz is built for coding agents and terminal workflows: gitignore-aware bundles, structured JSON output, reproducible session artifacts, live model resolution, local budget checks, and multimodal inputs across OpenAI, OpenRouter, Gemini, and LiteLLM-compatible backends.
Yoetz is under active development. Command behavior may change before 1.0.
- Bundle repository context into prompt-ready artifacts without fighting
.gitignore. - Ask one model with text, code, images, or video.
- Council multiple models in parallel when you want independent opinions.
- Review staged diffs or files with agent-readable output.
- Generate images and video through providers that expose generation APIs.
- Use browser recipes for web-only model surfaces while keeping terminal output parseable.
brew install avivsinai/tap/yoetz
yoetz --versionscoop bucket add avivsinai https://github.com/avivsinai/scoop-bucket
scoop install yoetz
yoetz --versionDownload archives and checksums from the latest GitHub release.
curl -fLO https://github.com/avivsinai/yoetz/releases/latest/download/yoetz-aarch64-apple-darwin.tar.gz
curl -fLO https://github.com/avivsinai/yoetz/releases/latest/download/SHA256SUMS.txt
shasum -a 256 -c SHA256SUMS.txt --ignore-missing
tar xzf yoetz-aarch64-apple-darwin.tar.gz
sudo mv yoetz /usr/local/bin/Release archives are published for macOS, Linux, and Windows targets. Use
sha256sum instead of shasum -a 256 on Linux.
cargo install --git https://github.com/avivsinai/yoetz --lockedYoetz also ships an agent skill so Claude Code, Codex CLI, and compatible agent runtimes know how to call the CLI safely: resolve live model IDs, keep stdout parseable, bundle large context first, and use browser recipes intentionally.
/plugin marketplace add avivsinai/skills-marketplace
/plugin install yoetz@avivsinai-marketplace
npx skills add avivsinai/yoetznpx skild install @avivsinai/yoetzThe skill source lives at skills/yoetz/SKILL.md and is versioned with the CLI release metadata.
Start with a command that needs no API key:
yoetz bundle -p "Summarize this project" -f README.md --format jsonThen configure at least one provider. Environment variables are enough for most users:
export OPENROUTER_API_KEY=...
export OPENAI_API_KEY=...
export GEMINI_API_KEY=...For persistent configuration:
mkdir -p ~/.config/yoetz
cat > ~/.config/yoetz/config.toml <<'EOF'
[defaults]
provider = "openrouter"
# Optional after resolving a current model ID:
# model = "<id from yoetz models resolve>"
[providers.openrouter]
base_url = "https://openrouter.ai/api/v1"
api_key_env = "OPENROUTER_API_KEY"
kind = "openai-compatible"
EOFFrom a source checkout, you can start from the full example instead:
cp docs/config.example.toml ~/.config/yoetz/config.tomlYoetz also supports YOETZ_CONFIG_PATH, repo-local ./yoetz.toml, and config
profiles. See docs/config.example.toml for the
shape.
Resolve live model IDs before putting them in scripts:
yoetz models sync
yoetz models frontier --format json
yoetz models frontier --family anthropic --format jsonMODEL_ID=$(yoetz models frontier --family openai --format json | jq -r '.[0].model.id')
yoetz ask \
-p "Explain the error handling tradeoffs in this file" \
-f crates/yoetz-cli/src/main.rs \
--provider openrouter \
--model "$MODEL_ID" \
--format jsonyoetz review diff --staged --format json
yoetz review file --path crates/yoetz-core/src/bundle.rs --format jsonOPENAI_MODEL=$(yoetz models frontier --family openai --format json | jq -r '.[0].model.id')
GEMINI_MODEL=$(yoetz models frontier --family gemini --format json | jq -r '.[0].model.id')
XAI_MODEL=$(yoetz models frontier --family xai --format json | jq -r '.[0].model.id')
yoetz council \
-p "Which API shape is safer for agents?" \
-f crates/yoetz-core/src/types.rs \
--models "$OPENAI_MODEL,$GEMINI_MODEL,$XAI_MODEL" \
--format json--models is explicit on purpose. Pick current IDs from yoetz models frontier
or yoetz models resolve, and pass the returned IDs verbatim. Avoid using
stale provider names or hand-written wrapper paths.
yoetz bundle \
-p "Review the browser transport design" \
-f "crates/yoetz-cli/src/browser*.rs" \
-f recipes/chatgpt.yaml \
--format jsonThe JSON response points to session artifacts under ~/.yoetz/sessions/<id>/,
including bundle.md.
MODEL_ID=$(yoetz models resolve "gemini" --format json | jq -r '.[0].id')
yoetz ask -p "Describe this diagram" --image diagram.png --provider gemini --model "$MODEL_ID" --format json
yoetz ask -p "Summarize this clip" --video demo.mp4 --provider gemini --model "$MODEL_ID" --format jsonUse --image-mime or --video-mime for signed URLs or extensionless files.
IMAGE_MODEL_ID=$(yoetz models list -s image --format json | jq -r '.models[] | .id | select(startswith("gemini/")) | sub("^gemini/"; "")' | head -1)
yoetz generate image \
-p "A clean product diagram of a terminal-first LLM router" \
--provider gemini \
--model "$IMAGE_MODEL_ID" \
--format json
VIDEO_MODEL_ID=$(yoetz models list -s veo --format json | jq -r '.models[] | .id | select(startswith("gemini/")) | sub("^gemini/"; "")' | head -1)
yoetz generate video \
-p "A short UI walkthrough" \
--provider gemini \
--model "$VIDEO_MODEL_ID" \
--format jsonGeneration still requires a provider-specific --provider plus a model that
that provider accepts. List or resolve live models before pinning a script.
Yoetz is designed to be called by agents and scripts.
export YOETZ_AGENT=1
yoetz ask -p "Return JSON only" -f src/lib.rs --format json --output-final /tmp/yoetz-result.jsonUseful agent-facing guarantees:
--format jsonkeeps stdout parseable.--response-format jsonand--response-schemarequest model-side structured output;--format jsononly controls the Yoetz CLI envelope.- Progress and diagnostics use stderr where possible.
--output-finalwrites the final response to a stable path.ask,bundle,council, andreviewcreate replayable session artifacts.- Budget flags such as
--max-cost-usdand--daily-budget-usdare local preflight/accounting aids, not provider-side hard limits.
Agent skill installation options are listed in Agent Skills.
Browser recipes let Yoetz use web-only model surfaces from the terminal. The built-in ChatGPT recipe targets ChatGPT Pro with Extended enabled and is fail-closed: if Yoetz cannot prove the requested surface is available, it stops instead of silently downgrading.
yoetz browser check --format json
yoetz browser recipe --recipe chatgpt --bundle ~/.yoetz/sessions/<id>/bundle.md --format jsonThe default browser stack is extension-free unless the ChatGPT native extension
is installed and connected. When connected, plain yoetz browser check uses a
native dry-run and the ChatGPT recipe selects chrome-extension-native as the
only default transport. Use an explicit --transport <name> when you want a
different browser transport.
Native extension happy path:
yoetz browser extension setup --chatgpt --open-chrome
yoetz browser extension doctor --chatgpt
yoetz browser extension status --chatgpt --format json
yoetz browser check --transport chrome-extension-native --format json
yoetz browser recipe --recipe chatgpt --transport chrome-extension-native --bundle bundle.md --format jsonThe native-host extension transport is currently macOS/Linux-only. Windows CLI
and Scoop installs work for the API-backed Yoetz flows, but
chrome-extension-native setup fails closed until Windows native messaging host
registration is implemented.
For multiple loaded Chrome profiles, select the connected bridge with
--var extension_instance_id=<id> from yoetz browser extension status --chatgpt, or opt into profile_email routing with yoetz browser extension grant-identity --chatgpt.
The detailed browser transport model lives in ARCHITECTURE.md.
Capabilities vary by model and provider. Use yoetz models frontier,
yoetz models list, and yoetz models resolve against the live registry before
pinning examples.
| Provider | Text | Vision | Image Gen | Video Gen | Video Understanding |
|---|---|---|---|---|---|
| OpenRouter | Yes | Model-dependent | No | No | No |
| OpenAI | Yes | Yes | Yes | Yes (Sora) | No |
| Gemini | Yes | Yes | No | Yes (Veo) | Yes |
| LiteLLM-compatible | Yes | Model-dependent | No | No | No |
Anthropic and xAI models are commonly reached through OpenRouter, but can also be configured as direct providers when you need provider-specific routing.
Common API key variables:
| Variable | Used for |
|---|---|
OPENROUTER_API_KEY |
OpenRouter |
OPENAI_API_KEY |
OpenAI |
GEMINI_API_KEY |
Gemini |
ANTHROPIC_API_KEY |
Direct Anthropic-compatible provider configs |
XAI_API_KEY |
Direct xAI/OpenAI-compatible provider configs |
LITELLM_API_KEY |
LiteLLM proxy |
Bundles are prompt-input artifacts, not trusted control channels. Treat bundled repository content, issues, logs, and pasted browser output as untrusted input. Keep intent in explicit CLI flags and the user prompt, avoid bundling secrets, and review generated changes before applying them.
Project trust signals:
- CI covers Rust tests, formatting, linting, dependency policy, secret scanning, MSRV, extension script tests, and browser smoke checks.
- Release archives ship with
SHA256SUMS.txt. - Security policy: SECURITY.md.
- Code of conduct: CODE_OF_CONDUCT.md.
git clone https://github.com/avivsinai/yoetz.git
cd yoetz
cargo build
cargo test
cargo fmt --all -- --check
cargo clippy --workspace --all-targets -- -D warningsOptional browser-extension checks:
./scripts/build-chatgpt-native-extension.sh --check
node --test extensions/chatgpt-native/tests/*.test.jsThe Rust workspace has two crates:
crates/yoetz-core: pure core types, bundling, config, registry, sessions.crates/yoetz-cli: async CLI, providers, browser transports, budgets.
See ARCHITECTURE.md and CONTRIBUTING.md for design and contribution details.
Releases are cut from main through ./scripts/release.sh X.Y.Z and the
resulting release PR. The merged release commit drives the tag, GitHub release
artifacts, Homebrew formula, Scoop manifest, and agent skill publication.