<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-to-use-grok-build-agdgcmiwt" -->

---
title: How to use Grok Build | daily.dev
description: This is a tutorial on using Grok Build, a terminal-based coding agent that can inspect code, edit files, run tests, and call external tools. It walks through...
canonical: https://daily.dev/posts/how-to-use-grok-build-agdgcmiwt
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to use Grok Build | daily.dev
og:description: This is a tutorial on using Grok Build, a terminal-based coding agent that can inspect code, edit files, run tests, and call external tools. It walks through...
og:url: https://daily.dev/posts/how-to-use-grok-build-agdgcmiwt
og:image: https://api.daily.dev/og/posts/agdGCmIWT.png
og:image:alt: How to use Grok Build
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How to use Grok Build

**[Flavio Copes](https://daily.dev/sources/flaviocopes)** · 34 min read · 0 upvotes · 0 comments

## Summary

This is a tutorial on using Grok Build, a terminal-based coding agent that can inspect code, edit files, run tests, and call external tools. It walks through installation via curl or PowerShell, login with device-code auth or an XAI_API_KEY, and building a small JavaScript median function to practice fixing bugs. It covers sandbox profiles (workspace, read-only, strict, devbox), permission modes (Ask, Auto, Always-approve), Plan mode, AGENTS.md conventions, skills, hooks, subagents, worktrees, MCP server integration, and headless scripting with JSON output. Pricing tiers listed range from a free plan to $200 per month Ultra with 50 times Plus usage, before applicable taxes and fees. Loop commands have a 60-second minimum interval and expire after seven days.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://flaviocopes.com/grok-build>

## Questions this post answers

### How do I install Grok Build on macOS or Linux?

Run the official installer with curl -fsSL https://x.ai/cli/install.sh | bash, which downloads and executes a shell script. To inspect it first, download it to a file with curl -fsSL https://x.ai/cli/install.sh -o /tmp/grok-install.sh, review it with less, then run bash /tmp/grok-install.sh. Windows uses a PowerShell command instead: irm https://x.ai/cli/install.ps1 | iex.

_Developers wiring new CLI agents into their setup can track install steps like these on daily.dev._

### What sandbox profiles does Grok Build support and what do they restrict?

Grok Build offers four built-in sandbox profiles: off (unrestricted reads and writes), workspace (writes limited to working directory, Grok home, and temp), read-only (writes limited to Grok home and temp, with child-process network blocked on Linux), strict (reads limited to working directory and system paths), and devbox (writes allowed to top-level directories except /data). The sandbox is off by default and must be enabled deliberately.

_Developers locking down what a coding agent can touch can compare sandbox profiles like these on daily.dev._

### What are the monthly pricing tiers for xAI's Grok plans?

xAI lists five individual monthly tiers: Free at $0 with limited access, Plus at $8 with basic shared AI usage, Premium at $30 with 4 times Plus usage, Super at $100 with 15 times Plus usage, and Ultra at $200 with 50 times Plus usage, before taxes and fees. These aren't fixed numbers of coding tasks since usage varies by task complexity, and API usage is billed separately from the subscription pool.

_Teams budgeting for AI coding tools can weigh usage tiers like these on daily.dev before committing to a plan._

## Similar posts on daily.dev

- [xAI Opens Grok Build 0.1 to Developers via API](https://daily.dev/posts/xai-opens-grok-build-0-1-to-developers-via-api-fz592bcvp) · DevOps.com · 1 upvotes · 0 comments
- [A Guide to Grok Bot 2026](https://daily.dev/posts/a-guide-to-grok-bot-2026-c5bednlv4) · Medium · 0 upvotes · 0 comments

---

Tags: [#javascript](https://daily.dev/tags/javascript), [#ai-agents](https://daily.dev/tags/ai-agents), [#cicd](https://daily.dev/tags/cicd), [#mcp](https://daily.dev/tags/mcp)

[View this post on daily.dev](https://daily.dev/posts/how-to-use-grok-build-agdgcmiwt)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How to use Grok Build","url":"https://daily.dev/posts/how-to-use-grok-build-agdgcmiwt","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-to-use-grok-build-agdgcmiwt"},"datePublished":"2026-10-26T11:32:46.536Z","dateModified":"2026-10-26T11:41:02.414Z","description":"This is a tutorial on using Grok Build, a terminal-based coding agent that can inspect code, edit files, run tests, and call external tools. It walks through...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/05da9c26f55603457f3a8d89da6dd133?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/05da9c26f55603457f3a8d89da6dd133?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Flavio Copes","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Flavio Copes","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/1f2dbd275797411bbd37bfdaaf0951a9","url":"https://daily.dev/sources/flaviocopes"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-to-use-grok-build-agdgcmiwt","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"javascript,ai-agents,cicd,mcp","timeRequired":"PT34M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Flavio Copes","item":"https://daily.dev/sources/flaviocopes"},{"@type":"ListItem","position":3,"name":"How to use Grok Build"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/how-to-use-grok-build-agdgcmiwt#faq","mainEntity":[{"@type":"Question","name":"How do I install Grok Build on macOS or Linux?","acceptedAnswer":{"@type":"Answer","text":"Run the official installer with curl -fsSL https://x.ai/cli/install.sh | bash, which downloads and executes a shell script. To inspect it first, download it to a file with curl -fsSL https://x.ai/cli/install.sh -o /tmp/grok-install.sh, review it with less, then run bash /tmp/grok-install.sh. Windows uses a PowerShell command instead: irm https://x.ai/cli/install.ps1 | iex. Developers wiring new CLI agents into their setup can track install steps like these on daily.dev."}},{"@type":"Question","name":"What sandbox profiles does Grok Build support and what do they restrict?","acceptedAnswer":{"@type":"Answer","text":"Grok Build offers four built-in sandbox profiles: off (unrestricted reads and writes), workspace (writes limited to working directory, Grok home, and temp), read-only (writes limited to Grok home and temp, with child-process network blocked on Linux), strict (reads limited to working directory and system paths), and devbox (writes allowed to top-level directories except /data). The sandbox is off by default and must be enabled deliberately. Developers locking down what a coding agent can touch can compare sandbox profiles like these on daily.dev."}},{"@type":"Question","name":"What are the monthly pricing tiers for xAI's Grok plans?","acceptedAnswer":{"@type":"Answer","text":"xAI lists five individual monthly tiers: Free at $0 with limited access, Plus at $8 with basic shared AI usage, Premium at $30 with 4 times Plus usage, Super at $100 with 15 times Plus usage, and Ultra at $200 with 50 times Plus usage, before taxes and fees. These aren't fixed numbers of coding tasks since usage varies by task complexity, and API usage is billed separately from the subscription pool. Teams budgeting for AI coding tools can weigh usage tiers like these on daily.dev before committing to a plan."}}]}
```

