콘텐츠로 이동
캐스털리 오픈콘솔

코딩 에이전트

Grok Build 설정

Responses API 엔드포인트를 사용하여 공식 Grok Build CLI를 구성합니다.

grok-4.5에 액세스할 수 있는 Modelflare API 키를 생성합니다.

터미널 창PowerShell
irm https://x.ai/cli/install.ps1 | iex
grok version
터미널 창PowerShell
New-Item -ItemType Directory -Force "$HOME\.grok" | Out-Null
Set-Location "$HOME\.grok"
$config = @'
[models]
default = "modelflare-grok"
[model.modelflare-grok]
model = "grok-4.5"
base_url = "https://modelflare.dev/v1"
name = "Modelflare Grok 4.5"
env_key = "MODELFLARE_API_KEY"
api_backend = "responses"
'@
$utf8NoBom = New-Object System.Text.UTF8Encoding -ArgumentList $false
[System.IO.File]::WriteAllText(
(Join-Path (Get-Location) "config.toml"),
$config,
$utf8NoBom
)

YOUR_MODELFLARE_API_KEY을 완전한 Modelflare API 키로 바꾸세요.

터미널 창PowerShell
[Environment]::SetEnvironmentVariable(
"MODELFLARE_API_KEY",
"YOUR_MODELFLARE_API_KEY",
"User"
)
$env:MODELFLARE_API_KEY = "YOUR_MODELFLARE_API_KEY"
터미널 창PowerShell
Set-Location $HOME
grok -p "Reply only: Modelflare connected" -m modelflare-grok
grok