Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

How I Use Grok Build to Run Free Models Alongside Grok-4.6

说明与用途

用户可以通过编辑 ~/.grok/config.toml 并使用 /model 切换,在 Grok Build 中运行本地和 OpenRouter 免费模型,保持单一界面。

问题

Users want to extend Grok Build to use open‑weight or free models beyond the built‑in Grok lineup.

结果

Users can run local or free OpenRouter models in Grok Build without leaving the harness, enabling offline, private, or cost‑free workflows.

工作流

  • 1. Ensure a local model server exposes /v1/chat/completions (e.g., llama.cpp, LM Studio, Ollama).
  • 2. Add a model entry to ~/.grok/config.toml with model id, base_url, name, api_backend, and context_window.
  • 3. Start the local server and restart Grok Build.
  • 4. In Grok Build, switch to the local model with /model <model-id> or launch grok with -m <model-id>.
  • 5. For OpenRouter free models, export OPENROUTER_API_KEY, define a provider in config.toml, and add model entries with :free suffix.
  • 6. Switch to an OpenRouter model with /model <model-id> or use grok models to list available models.
  • 7. Verify connectivity with curl against the model endpoint; fix typos if Grok Build fails to connect.

证据

Grok Build talks to anything that speaks an OpenAI-compatible chat API.

来源

You can start grok directly with the model as an argument: grok -m gemma-4-12b-local

来源

  • 记录日期: 2026-09-06T13:52:45.401Z