Install greg in your terminal, configure your provider, and complete your first autonomous task in under two minutes.
This quickstart walks you through getting up and running with greg in your terminal: installing the standalone binary, setting up your preferred model provider, exploring a repository, applying safe code edits, verifying solutions with tests, and managing multi-turn sessions.
greg is distributed as a self-contained native binary with zero runtime dependencies. You do not need Node.js, Bun, or Python installed to run official releases. For manual downloads or building from source, see Installation.
This page covers:
Prerequisites: What you need before getting started.
The script automatically detects your operating system and CPU architecture, downloads the matching precompiled binary, places it in ~/.greg/bin, and updates your shell profile (PATH).Once the installer completes, open a new terminal window and verify the installation:
greg --version
You can update greg to the latest release at any time by running greg update.
Step 2: Configure Your Model Provider
Set your provider API key as an environment variable and configure your default frontier model. Choose your provider below:
# 1. Export your Anthropic API keyexport ANTHROPIC_API_KEY="sk-ant-..."# 2. Set Claude Sonnet 4.6 as your default modelgreg config set model anthropic/claude-sonnet-4-6
# 1. Export your Gemini API key (or GOOGLE_API_KEY)export GEMINI_API_KEY="AIzaSy..."# 2. Set Gemini 3.8 Flash as your default modelgreg config set model google/gemini-3.8-flash
# 1. Export your OpenAI API keyexport OPENAI_API_KEY="sk-proj-..."# 2. Set GPT-5 as your default modelgreg config set model openai/gpt-5
# 1. Export your DeepSeek API keyexport DEEPSEEK_API_KEY="sk-..."# 2. Set DeepSeek-V4 Pro as your default modelgreg config set model deepseek/deepseek-v4-pro
# 1. Export your Groq API keyexport GROQ_API_KEY="gsk_..."# 2. Set Llama 3.3 70B Versatile as your default modelgreg config set model groq/llama-3.3-70b-versatile
# 1. Export your OpenRouter API keyexport OPENROUTER_API_KEY="sk-or-..."# 2. Route across models via OpenRoutergreg config set model openrouter/anthropic/claude-sonnet-4-6
Verify your active configuration:
greg config get model
Add your export statement to your shell profile (~/.zshrc or ~/.bashrc) so your credentials load automatically in every terminal session.
Step 3: Ask Your First Question
Navigate to any project repository:
cd /path/to/your/project
Ask greg to inspect and summarize the codebase:
greg "What does this project do, what are the primary dependencies, and where is the main entry point?"
greg autonomously discovers your directory structure using Glob, inspects package manifests and configurations using Read, and streams a clean answer directly to stdout.Try more targeted exploration queries:
# Trace an execution pathgreg "How does user authentication work in this application? Which files handle token verification?"# Inspect complex data modelsgreg "Explain the key database schemas and relationships defined in src/models"
greg runs by default in fail-closed read-only mode. It can read files and query language servers to answer questions, but will never modify files or run dangerous commands without your explicit consent.
Step 4: Make Your First Code Change
To permit greg to create or edit files, pass --permission-mode acceptEdits:
greg "Add a slugify helper function to src/utils/strings.ts that converts strings to URL-friendly slugs" \ --permission-mode acceptEdits
greg will:
Locate src/utils/strings.ts (or create it if it does not exist).
Inspect your repository’s formatting, casing, and style conventions.
Automatically record a pre-mutation snapshot checkpoint before touching disk.
Apply the edits cleanly.
Safe Edits with Instant Rollback
Every file mutation made by greg is backed by a content-addressed snapshot. If you ever want to revert changes:
# 1. Inspect the recorded diffgreg checkpoints diff 1# 2. Revert the workspace back to the pre-mutation stategreg checkpoints restore 1
Step 5: Run Tests & Verify Solutions
Instruct greg to diagnose an issue and verify its fix by executing your test runner. Use --allowed-tools to authorize specific shell commands safely:
greg "Add unit tests for our new slugify function in tests/strings.test.ts and run the test runner to verify they pass" \ --permission-mode acceptEdits \ --allowed-tools "Bash(bun test *)"
greg writes the test file, executes bun test, evaluates the test output, and resolves any assertion failures until all tests pass.
Step 6: Pipe Terminal Data into Greg
greg follows the Unix philosophy: clean Markdown and code stream to stdout, while diagnostic logs remain isolated on stderr. You can pipe data from standard terminal utilities directly into greg:
# Audit uncommitted Git changes before committinggit diff | greg "Review these changes for subtle bugs, performance regressions, or security flaws"# Diagnose a crash from a log filetail -n 80 error.log | greg "Diagnose what caused this exception and suggest a fix"# Pipe output into clipboard (macOS / Linux)greg "Generate a .gitignore for a modern TypeScript Bun project" | pbcopy
Step 7: Continue Conversations with -c
greg automatically organizes your work into workspace-scoped persistent threads. Use -c (or --continue) to continue your task across multiple turns without repeating context:
# Turn 1: Scaffold an interfacegreg "Add a UserProfile interface to src/types.ts" --permission-mode acceptEdits# Turn 2: Continue the conversation in the same threadgreg -c "Now add a mock factory function for UserProfile in tests/helpers.ts" --permission-mode acceptEdits# Turn 3: Verify the changes with testsgreg -c "Run the test suite and confirm everything compiles cleanly" \ --permission-mode acceptEdits \ --allowed-tools "Bash(npm test)"
Managing Providers: Configure credentials, base URL overrides, reasoning effort, and fallback chains across 13+ providers.
Installation Guide: Detailed setup for all operating systems, offline releases, and source compilation.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Greg Docs","colors":{"primary":"#FFAF00","light":"#FFC043","dark":"#CC8400"},"logo":{"light":"https://mintcdn.com/greg-docs/1ztw1IOzhYYvbaWe/logo/light.svg?fit=max\u0026auto=format\u0026n=1ztw1IOzhYYvbaWe\u0026q=85\u0026s=accd0734808b5086a411d1ef9e4da000","dark":"https://mintcdn.com/greg-docs/1ztw1IOzhYYvbaWe/logo/dark.svg?fit=max\u0026auto=format\u0026n=1ztw1IOzhYYvbaWe\u0026q=85\u0026s=3f27641f68e7eb481145d645c07ea504","href":"/overview"},"favicon":"https://mintcdn.com/greg-docs/1ztw1IOzhYYvbaWe/favicon.svg?fit=max\u0026auto=format\u0026n=1ztw1IOzhYYvbaWe\u0026q=85\u0026s=96f9fa84a10b7239baabde84256ab6f7","appearance":{"default":"system"},"background":{"color":{"light":"#FFFFFF","dark":"#000000"}},"navbar":{"links":[{"href":"https://github.com/amaranthic","label":"Organization"},{"href":"https://github.com/amaranthic/greg/issues","label":"Report an Issue"}],"primary":{"type":"button","label":"GitHub","href":"https://github.com/amaranthic/greg"}},"footer":{"socials":{"github":"https://github.com/amaranthic/greg"}},"styling":{"codeblocks":{"theme":{"light":"github-light","dark":"github-dark"}},"latex":false},"contextual":{"options":["copy","view","chatgpt","claude","aistudio","grok","perplexity"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"greg-docs","hasAudioNarration":false,"actualSubdomain":"greg-docs","customDomains":[],"gitSource":{"type":"github","owner":"amaranthic","repo":"greg","deployBranch":"main","contentDirectory":"docs","isPrivate":false,"mountPath":"","label":"","_id":"6aff108ac443de316e43b447"},"entitlements":{},"buildId":"6b000265ceccfd47eed4494c","clientVersion":"0.0.4227","searchFilterCounts":[{"language":"default","tag":"Using Greg","count":5},{"language":"default","tag":"Getting Started","count":3},{"language":"default","tag":"Core Concepts","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"quickstart","slug":"/quickstart","pageMetadata":{"title":"Quickstart","description":"Install greg in your terminal, configure your provider, and complete your first autonomous task in under two minutes.","href":"/quickstart"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Install greg in your terminal, configure your provider, and complete your first autonomous task in under two minutes.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,hr:`hr`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Note,Table,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`This quickstart walks you through getting up and running with `,_jsx(_components.code,{children:`greg`}),` in your terminal: installing the standalone binary, setting up your preferred model provider, exploring a repository, applying safe code edits, verifying solutions with tests, and managing multi-turn sessions.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`greg`}),` is distributed as a self-contained native binary with zero runtime dependencies. You do not need Node.js, Bun, or Python installed to run official releases. For manual downloads or building from source, see `,_jsx(_components.a,{href:`/installation`,children:`Installation`}),`.`]})}),`\n`,_jsx(_components.p,{children:`This page covers:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`#prerequisites`,children:`Prerequisites`}),`: What you need before getting started.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`#step-1-install-greg`,children:`Step 1: Install Greg`}),`: Downloading and verifying the standalone binary.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`#step-2-configure-your-model-provider`,children:`Step 2: Configure Your Model Provider`}),`: Setting API keys and default frontier models across providers.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`#step-3-ask-your-first-question`,children:`Step 3: Ask Your First Question`}),`: Read-only codebase exploration and architecture queries.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`#step-4-make-your-first-code-change`,children:`Step 4: Make Your First Code Change`}),`: Authorizing file mutations with `,_jsx(_components.code,{children:`--permission-mode acceptEdits`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`#step-5-run-tests-verify-solutions`,children:`Step 5: Run Tests \u0026 Verify Solutions`}),`: Constraining shell execution with scoped `,_jsx(_components.code,{children:`--allowed-tools`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`#step-6-pipe-terminal-data-into-greg`,children:`Step 6: Pipe Terminal Data into Greg`}),`: Unix composability with `,_jsx(_components.code,{children:`stdin`}),` pipes.`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.a,{href:`#step-7-continue-conversations-with--c`,children:[`Step 7: Continue Conversations with `,_jsx(_components.code,{children:`-c`})]}),`: Multi-turn session persistence.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`#essential-commands-cheat-sheet`,children:`Essential Commands Cheat Sheet`}),`: Quick reference of daily commands.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`#next-steps`,children:`Next Steps`}),`: Guided links to deeper topics.`]}),`\n`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`prerequisites`,children:`Prerequisites`}),`\n`,_jsx(_components.p,{children:`Before beginning, ensure you have:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`A terminal emulator (`,_jsx(_components.code,{children:`bash`}),`, `,_jsx(_components.code,{children:`zsh`}),`, `,_jsx(_components.code,{children:`fish`}),`, or terminal multiplexer).`]}),`\n`,_jsx(_components.li,{children:`An existing project directory or Git repository to test in.`}),`\n`,_jsx(_components.li,{children:`An API key for your preferred frontier AI model provider (Anthropic, Google Gemini, OpenAI, DeepSeek, Groq, or OpenRouter).`}),`\n`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`step-1-install-greg`,children:`Step 1: Install Greg`}),`\n`,_jsxs(_components.p,{children:[`Install `,_jsx(_components.code,{children:`greg`}),` using the official installation script for macOS, Linux, or WSL:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`curl`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -fsSL`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` https://raw.githubusercontent.com/amaranthic/greg/main/installer/install.sh`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` |`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:` bash`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The script automatically detects your operating system and CPU architecture, downloads the matching precompiled binary, places it in `,_jsx(_components.code,{children:`~/.greg/bin`}),`, and updates your shell profile (`,_jsx(_components.code,{children:`PATH`}),`).`]}),`\n`,_jsx(_components.p,{children:`Once the installer completes, open a new terminal window and verify the installation:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`greg`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --version`})]}),`\n`]})})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`You can update `,_jsx(_components.code,{children:`greg`}),` to the latest release at any time by running `,_jsx(_components.code,{children:`greg update`}),`.`]})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`step-2-configure-your-model-provider`,children:`Step 2: Configure Your Model Provider`}),`\n`,_jsx(_components.p,{children:`Set your provider API key as an environment variable and configure your default frontier model. Choose your provider below:`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Anthropic`,numberOfLines:`7`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:`# 1. Export your Anthropic API key`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`export`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` ANTHROPIC_API_KEY`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"sk-ant-...\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:`# 2. Set Claude Sonnet 4.6 as your default model`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`greg`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` config`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` set`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` model`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` anthropic/claude-sonnet-4-6`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`]})})}),_jsx(CodeBlock,{filename:`Google Gemini`,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:`# 1. Export your Gemini API key (or GOOGLE_API_KEY)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`export`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` GEMINI_API_KEY`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"AIzaSy...\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:`# 2. Set Gemini 3.8 Flash as your default model`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`greg`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` config`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` set`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` model`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` google/gemini-3.8-flash`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`OpenAI`,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:`# 1. Export your OpenAI API key`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`export`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` OPENAI_API_KEY`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"sk-proj-...\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:`# 2. Set GPT-5 as your default model`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`greg`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` config`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` set`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` model`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` openai/gpt-5`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`DeepSeek`,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:`# 1. Export your DeepSeek API key`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`export`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` DEEPSEEK_API_KEY`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"sk-...\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:`# 2. Set DeepSeek-V4 Pro as your default model`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`greg`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` config`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` set`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` model`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` deepseek/deepseek-v4-pro`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Groq`,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:`# 1. Export your Groq API key`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`export`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` GROQ_API_KEY`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"gsk_...\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:`# 2. Set Llama 3.3 70B Versatile as your default model`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`greg`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` config`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` set`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` model`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` groq/llama-3.3-70b-versatile`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`OpenRouter`,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:`# 1. Export your OpenRouter API key`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`export`}),_jsx(_components.span,{style:{color:`#24292E`,\"--shiki-dark\":`#E1E4E8`},children:` OPENROUTER_API_KEY`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:`\"sk-or-...\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:`# 2. Route across models via OpenRouter`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`greg`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` config`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` set`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` model`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` openrouter/anthropic/claude-sonnet-4-6`})]}),`\n`]})})})]}),`\n`,_jsx(_components.p,{children:`Verify your active configuration:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`greg`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` config`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` get`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` model`})]}),`\n`]})})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Add your `,_jsx(_components.code,{children:`export`}),` statement to your shell profile (`,_jsx(_components.code,{children:`~/.zshrc`}),` or `,_jsx(_components.code,{children:`~/.bashrc`}),`) so your credentials load automatically in every terminal session.`]})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`step-3-ask-your-first-question`,children:`Step 3: Ask Your First Question`}),`\n`,_jsx(_components.p,{children:`Navigate to any project repository:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:`cd`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` /path/to/your/project`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Ask `,_jsx(_components.code,{children:`greg`}),` to inspect and summarize the codebase:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`greg`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"What does this project do, what are the primary dependencies, and where is the main entry point?\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`greg`}),` autonomously discovers your directory structure using `,_jsx(_components.code,{children:`Glob`}),`, inspects package manifests and configurations using `,_jsx(_components.code,{children:`Read`}),`, and streams a clean answer directly to `,_jsx(_components.code,{children:`stdout`}),`.`]}),`\n`,_jsx(_components.p,{children:`Try more targeted exploration queries:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:`# Trace an execution path`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`greg`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"How does user authentication work in this application? Which files handle token verification?\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:`# Inspect complex data models`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`greg`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Explain the key database schemas and relationships defined in src/models\"`})]}),`\n`]})})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`greg`}),` runs by default in fail-closed read-only mode. It can read files and query language servers to answer questions, but will never modify files or run dangerous commands without your explicit consent.`]})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`step-4-make-your-first-code-change`,children:`Step 4: Make Your First Code Change`}),`\n`,_jsxs(_components.p,{children:[`To permit `,_jsx(_components.code,{children:`greg`}),` to create or edit files, pass `,_jsx(_components.code,{children:`--permission-mode acceptEdits`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`greg`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Add a slugify helper function to src/utils/strings.ts that converts strings to URL-friendly slugs\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --permission-mode`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` acceptEdits`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`greg`}),` will:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Locate `,_jsx(_components.code,{children:`src/utils/strings.ts`}),` (or create it if it does not exist).`]}),`\n`,_jsx(_components.li,{children:`Inspect your repository’s formatting, casing, and style conventions.`}),`\n`,_jsx(_components.li,{children:`Automatically record a pre-mutation snapshot checkpoint before touching disk.`}),`\n`,_jsx(_components.li,{children:`Apply the edits cleanly.`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`safe-edits-with-instant-rollback`,children:`Safe Edits with Instant Rollback`}),`\n`,_jsxs(_components.p,{children:[`Every file mutation made by `,_jsx(_components.code,{children:`greg`}),` is backed by a content-addressed snapshot. If you ever want to revert changes:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:`# 1. Inspect the recorded diff`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`greg`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` checkpoints`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` diff`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` 1`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:`# 2. Revert the workspace back to the pre-mutation state`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`greg`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` checkpoints`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` restore`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` 1`})]}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`step-5-run-tests-\u0026-verify-solutions`,children:`Step 5: Run Tests \u0026 Verify Solutions`}),`\n`,_jsxs(_components.p,{children:[`Instruct `,_jsx(_components.code,{children:`greg`}),` to diagnose an issue and verify its fix by executing your test runner. Use `,_jsx(_components.code,{children:`--allowed-tools`}),` to authorize specific shell commands safely:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`greg`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Add unit tests for our new slugify function in tests/strings.test.ts and run the test runner to verify they pass\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --permission-mode`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` acceptEdits`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --allowed-tools`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Bash(bun test *)\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`greg`}),` writes the test file, executes `,_jsx(_components.code,{children:`bun test`}),`, evaluates the test output, and resolves any assertion failures until all tests pass.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`step-6-pipe-terminal-data-into-greg`,children:`Step 6: Pipe Terminal Data into Greg`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`greg`}),` follows the Unix philosophy: clean Markdown and code stream to `,_jsx(_components.code,{children:`stdout`}),`, while diagnostic logs remain isolated on `,_jsx(_components.code,{children:`stderr`}),`. You can pipe data from standard terminal utilities directly into `,_jsx(_components.code,{children:`greg`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:`# Audit uncommitted Git changes before committing`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`git`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` diff`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` |`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:` greg`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Review these changes for subtle bugs, performance regressions, or security flaws\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:`# Diagnose a crash from a log file`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`tail`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -n`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` 80`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` error.log`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` |`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:` greg`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Diagnose what caused this exception and suggest a fix\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:`# Pipe output into clipboard (macOS / Linux)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`greg`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Generate a .gitignore for a modern TypeScript Bun project\"`}),_jsx(_components.span,{style:{color:`#D73A49`,\"--shiki-dark\":`#F97583`},children:` |`}),_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:` pbcopy`})]}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsxs(Heading,{level:`2`,id:`step-7-continue-conversations-with-c`,children:[`Step 7: Continue Conversations with `,_jsx(_components.code,{children:`-c`})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`greg`}),` automatically organizes your work into workspace-scoped persistent threads. Use `,_jsx(_components.code,{children:`-c`}),` (or `,_jsx(_components.code,{children:`--continue`}),`) to continue your task across multiple turns without repeating context:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:`# Turn 1: Scaffold an interface`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`greg`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Add a UserProfile interface to src/types.ts\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --permission-mode`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` acceptEdits`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:`# Turn 2: Continue the conversation in the same thread`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`greg`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -c`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Now add a mock factory function for UserProfile in tests/helpers.ts\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --permission-mode`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` acceptEdits`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:`# Turn 3: Verify the changes with tests`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`greg`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` -c`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Run the test suite and confirm everything compiles cleanly\"`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --permission-mode`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` acceptEdits`}),_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#005CC5`,\"--shiki-dark\":`#79B8FF`},children:` --allowed-tools`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` \"Bash(npm test)\"`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`View past sessions in the current workspace:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6F42C1`,\"--shiki-dark\":`#B392F0`},children:`greg`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` threads`}),_jsx(_components.span,{style:{color:`#032F62`,\"--shiki-dark\":`#9ECBFF`},children:` list`})]}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`essential-commands-cheat-sheet`,children:`Essential Commands Cheat Sheet`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Command`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Purpose`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Example`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`greg \"prompt\"`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Run an autonomous task in read-only print mode`}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`greg \"Explain this repository\"`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`greg \"prompt\" --permission-mode acceptEdits`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Allow file modifications`}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`greg \"Add healthcheck route\" --permission-mode acceptEdits`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`greg -c \"prompt\"`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Continue the latest workspace session`}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`greg -c \"Now add unit tests\"`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`greg -r \u003cid> \"prompt\"`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Resume a specific session by thread ID`}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`greg -r 4f8a1234-... \"Refactor this\"`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`git diff | greg \"prompt\"`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Ingest piped standard input`}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`git diff | greg \"Summarize changes\"`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`greg checkpoints list`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`List file mutation snapshot checkpoints`}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`greg checkpoints list`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`greg checkpoints diff \u003cseq>`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`View file diff for a recorded checkpoint`}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`greg checkpoints diff 1`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`greg checkpoints restore \u003cseq>`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Roll back workspace to a checkpoint`}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`greg checkpoints restore 1`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`greg threads list`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`List conversation threads in workspace`}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`greg threads list`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`greg config get [key]`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Inspect active configuration settings`}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`greg config get model`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`greg config set \u003ckey> \u003cval>`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Persist a configuration setting`}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`greg config set model anthropic/claude-sonnet-4-6`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`greg update`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Update greg to the latest release`}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`greg update`})})]})]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`next-steps`,children:`Next Steps`}),`\n`,_jsxs(_components.p,{children:[`Now that you have completed your first task, explore these guides to unlock `,_jsx(_components.code,{children:`greg`}),`’s full capabilities:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/common-workflows`,children:`Common Workflows`}),`: In-depth step-by-step recipes for bug fixing, refactoring, test generation, and CI automation.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/threads`,children:`Managing Threads`}),`: Master multi-turn persistence, time-travel branching (`,_jsx(_components.code,{children:`--resume-session-at`}),`), and checkpoint rollbacks.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/model-providers`,children:`Managing Providers`}),`: Configure credentials, base URL overrides, reasoning effort, and fallback chains across 13+ providers.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/installation`,children:`Installation Guide`}),`: Detailed setup for all operating systems, offline releases, and source compilation.`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"github-light","dark":"github-dark"}},"config":{},"pageMetadata":{"title":"Quickstart","description":"Install greg in your terminal, configure your provider, and complete your first autonomous task in under two minutes.","href":"/quickstart"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Prerequisites","slug":"prerequisites","depth":2,"children":[]},{"title":"Step 1: Install Greg","slug":"step-1-install-greg","depth":2,"children":[]},{"title":"Step 2: Configure Your Model Provider","slug":"step-2-configure-your-model-provider","depth":2,"children":[]},{"title":"Step 3: Ask Your First Question","slug":"step-3-ask-your-first-question","depth":2,"children":[]},{"title":"Step 4: Make Your First Code Change","slug":"step-4-make-your-first-code-change","depth":2,"children":[{"title":"Safe Edits with Instant Rollback","slug":"safe-edits-with-instant-rollback","depth":3,"children":[]}]},{"title":"Step 5: Run Tests \u0026 Verify Solutions","slug":"step-5-run-tests-\u0026-verify-solutions","depth":2,"children":[]},{"title":"Step 6: Pipe Terminal Data into Greg","slug":"step-6-pipe-terminal-data-into-greg","depth":2,"children":[]},{"title":"Step 7: Continue Conversations with -c","slug":"step-7-continue-conversations-with-c","depth":2,"children":[]},{"title":"Essential Commands Cheat Sheet","slug":"essential-commands-cheat-sheet","depth":2,"children":[]},{"title":"Next Steps","slug":"next-steps","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"greg-docs","siteName":"Greg Docs","title":"Quickstart - Greg Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-20T07:48:11.165Z","originalFileLocation":"quickstart.md"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Install greg in your terminal, configure your provider, and complete your first autonomous task in under two minutes.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Greg Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/greg-docs/CYS9RrR5P4NsbKle/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/greg-docs/CYS9RrR5P4NsbKle/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/greg-docs/CYS9RrR5P4NsbKle/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/greg-docs/CYS9RrR5P4NsbKle/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/greg-docs/CYS9RrR5P4NsbKle/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/greg-docs/CYS9RrR5P4NsbKle/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/greg-docs/CYS9RrR5P4NsbKle/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/greg-docs/CYS9RrR5P4NsbKle/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/greg-docs/CYS9RrR5P4NsbKle/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Quickstart - Greg Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Install greg in your terminal, configure your provider, and complete your first autonomous task in under two minutes.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Greg Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://greg-docs.mintlify.app/quickstart\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://greg-docs.mintlify.site/_mintlify/api/og/v2?division=Getting+Started\u0026amp;title=Quickstart\u0026amp;description=Install+greg+in+your+terminal%2C+configure+your+provider%2C+and+complete+your+first+autonomous+task+in+under+two+minutes.\u0026amp;theme=f6b476a5bde03bd4c33c1b43\u0026amp;signature=721c21a87552d65416b62db587397077f1b13179e32ea8da30cea0bd4841294e\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Quickstart - Greg Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Install greg in your terminal, configure your provider, and complete your first autonomous task in under two minutes.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://greg-docs.mintlify.site/_mintlify/api/og/v2?division=Getting+Started\u0026amp;title=Quickstart\u0026amp;description=Install+greg+in+your+terminal%2C+configure+your+provider%2C+and+complete+your+first+autonomous+task+in+under+two+minutes.\u0026amp;theme=f6b476a5bde03bd4c33c1b43\u0026amp;signature=721c21a87552d65416b62db587397077f1b13179e32ea8da30cea0bd4841294e\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/greg-docs/CYS9RrR5P4NsbKle/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Greg Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FFAF00\">\u003clink data-mint-head rel=\"canonical\" href=\"https://greg-docs.mintlify.app/quickstart\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/quickstart.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://greg-docs.mintlify.app/#organization\",\"name\":\"Greg Docs\",\"url\":\"https://greg-docs.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/greg-docs/1ztw1IOzhYYvbaWe/logo/light.svg?fit=max\u0026auto=format\u0026n=1ztw1IOzhYYvbaWe\u0026q=85\u0026s=accd0734808b5086a411d1ef9e4da000\"}},{\"@type\":\"WebSite\",\"@id\":\"https://greg-docs.mintlify.app#website\",\"name\":\"Greg Docs\",\"url\":\"https://greg-docs.mintlify.app\",\"publisher\":{\"@id\":\"https://greg-docs.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://greg-docs.mintlify.app/quickstart#webpage\",\"url\":\"https://greg-docs.mintlify.app/quickstart\",\"name\":\"Quickstart\",\"description\":\"Install greg in your terminal, configure your provider, and complete your first autonomous task in under two minutes.\",\"dateModified\":\"2026-11-20T07:48:11.165Z\",\"isPartOf\":{\"@id\":\"https://greg-docs.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://greg-docs.mintlify.app/quickstart#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://greg-docs.mintlify.app/quickstart#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Getting Started\",\"item\":\"https://greg-docs.mintlify.app/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Quickstart\",\"item\":\"https://greg-docs.mintlify.app/quickstart\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://greg-docs.mintlify.app/quickstart#article\",\"headline\":\"Quickstart\",\"name\":\"Quickstart\",\"description\":\"Install greg in your terminal, configure your provider, and complete your first autonomous task in under two minutes.\",\"url\":\"https://greg-docs.mintlify.app/quickstart\",\"mainEntityOfPage\":{\"@id\":\"https://greg-docs.mintlify.app/quickstart#webpage\"},\"dateModified\":\"2026-11-20T07:48:11.165Z\",\"publisher\":{\"@id\":\"https://greg-docs.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://greg-docs.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Greg Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Greg Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/quickstart.md","siteName":"Greg Docs","nav":{"global":null,"groups":[{"group":"Getting Started","pages":[{"title":"Overview","description":"greg is a post-modern autonomous print agent that reads codebases, edits files, executes tests, and seamlessly integrates with Unix terminal pipelines.","href":"/overview"},{"title":"Quickstart","href":"/quickstart"},{"title":"Installation","description":"Detailed installation instructions for macOS, Linux, Windows, WSL, and Android Termux.","href":"/installation"}]},{"group":"Core Concepts","pages":[{"title":"How Greg Works","href":"/how-greg-works"},{"title":"Permissions \u0026 Safety","href":"/permissions"}]},{"group":"Using Greg","pages":[{"title":"Managing Threads","href":"/threads"},{"title":"Managing Providers","href":"/model-providers"},{"title":"Common Workflows","href":"/common-workflows"},{"title":"Lifecycle Hooks","href":"/hooks"},{"title":"CI/CD \u0026 Automation","href":"/ci-cd"}]}]},"basePath":"","title":"Quickstart - Greg Docs","deploymentId":"dpl_vSEmv961Ncyvz1psVwgUnTXQMSYk","buildId":"dpl_vSEmv961Ncyvz1psVwgUnTXQMSYk","dynamics":[],"chunks":[]}