Skip to content

AI Agents

Grok Build

xAI's coding agent for the terminal.

Connects with
Sign in, API key, Skill
Plans
SuperGrok and X Premium+, while Grok Build is in beta.

Before you start

  • Grok Build installed and signed in.

Set it up

  1. 1

    Add SPREVA for every project:

    Terminal
    grok mcp add --transport http \
      spreva https://app.spreva.ai/api/mcp
  2. 2

    Start Grok Build and ask for something in SPREVA. The first time, your browser opens SPREVA: sign in, choose the workspace and click Allow.

  3. 3

    If something looks wrong, check the connection:

    Terminal
    grok mcp doctor spreva

Also works with

  • API key in a header

    Send a SPREVA API key as a Bearer token, for automation that runs without a person.

    Terminal
    export SPREVA_API_KEY=spreva_sk_...
    grok mcp add --transport http \
      spreva https://app.spreva.ai/api/mcp \
      --header "Authorization: Bearer $SPREVA_API_KEY"
  • The CLI and the Agent Skill

    Install the spreva command line and its Agent Skill, for agents that work in a terminal.

    Terminal
    export SPREVA_API_KEY=spreva_sk_...
    npx -y @spreva/cli skill install --target agents

Check it works

Start a new conversation and ask:

Ask your agent
What's going out this week on SPREVA?

Grok Build calls SPREVA's overview tool and answers with the workspace's time zone, what goes out next and anything that needs attention. The first time, Grok Build may ask you to allow the tool.

Troubleshooting

The browser doesn't open to sign in

In Grok Build, run /mcps, select spreva and press i to sign in.

Something else? Troubleshooting covers sign-in loops, plans, limits and time zones.