xAI
OpenClaw에는 Grok 모델용 번들xai provider Plugin이 포함되어 있습니다.
시작하기
OpenClaw는 번들된 xAI 전송 계층으로 xAI Responses API를 사용합니다. 같은
XAI_API_KEY로 Grok 기반 web_search, 기본 제공 x_search,
원격 code_execution도 사용할 수 있습니다.
plugins.entries.xai.config.webSearch.apiKey 아래에 xAI 키를 저장하면,
번들된 xAI 모델 provider도 그 키를 대체값으로 재사용합니다.
code_execution 튜닝은 plugins.entries.xai.config.codeExecution 아래에 있습니다.번들 모델 카탈로그
OpenClaw에는 기본으로 다음 xAI 모델 계열이 포함됩니다.| Family | Model ids |
|---|---|
| Grok 3 | grok-3, grok-3-fast, grok-3-mini, grok-3-mini-fast |
| Grok 4 | grok-4, grok-4-0709 |
| Grok 4 Fast | grok-4-fast, grok-4-fast-non-reasoning |
| Grok 4.1 Fast | grok-4-1-fast, grok-4-1-fast-non-reasoning |
| Grok 4.20 Beta | grok-4.20-beta-latest-reasoning, grok-4.20-beta-latest-non-reasoning |
| Grok Code | grok-code-fast-1 |
grok-4* 및 grok-code-fast* ids도
같은 API 형태를 따르는 경우 forward-resolve합니다.
Fast mode 매핑
/fast on 또는 agents.defaults.models["xai/<model>"].params.fastMode: true
를 사용하면 기본 xAI 요청이 다음과 같이 다시 매핑됩니다.
| Source model | Fast-mode target |
|---|---|
grok-3 | grok-3-fast |
grok-3-mini | grok-3-mini-fast |
grok-4 | grok-4-fast |
grok-4-0709 | grok-4-fast |
레거시 호환성 별칭
레거시 별칭은 여전히 정식 번들 ids로 정규화됩니다.| Legacy alias | Canonical id |
|---|---|
grok-4-fast-reasoning | grok-4-fast |
grok-4-1-fast-reasoning | grok-4-1-fast |
grok-4.20-reasoning | grok-4.20-beta-latest-reasoning |
grok-4.20-non-reasoning | grok-4.20-beta-latest-non-reasoning |
기능
Web search
Web search
번들된
grok web-search provider도 XAI_API_KEY를 사용합니다:비디오 생성
비디오 생성
번들된
xai Plugin은 공용
video_generate tool을 통해 비디오 생성을 등록합니다.- 기본 비디오 모델:
xai/grok-imagine-video - 모드: text-to-video, image-to-video, 원격 비디오 edit/extend 흐름
- 지원 파라미터:
aspectRatio,resolution
공용 tool parameters,
provider 선택, failover 동작은 Video Generation을 참고하세요.
x_search 구성
x_search 구성
번들된 xAI Plugin은 Grok을 통해
X(이전 Twitter) 콘텐츠를 검색하는 OpenClaw tool로
x_search를 노출합니다.config 경로: plugins.entries.xai.config.xSearch| Key | Type | Default | Description |
|---|---|---|---|
enabled | boolean | — | x_search 활성화 또는 비활성화 |
model | string | grok-4-1-fast | x_search 요청에 사용할 모델 |
inlineCitations | boolean | — | 결과에 인라인 인용 포함 |
maxTurns | number | — | 최대 대화 턴 수 |
timeoutSeconds | number | — | 초 단위 요청 타임아웃 |
cacheTtlMinutes | number | — | 분 단위 캐시 TTL |
Code execution 구성
Code execution 구성
번들된 xAI Plugin은
xAI의 sandbox 환경에서 원격 코드 실행을 위한 OpenClaw tool로
code_execution을 노출합니다.config 경로: plugins.entries.xai.config.codeExecution| Key | Type | Default | Description |
|---|---|---|---|
enabled | boolean | true (if key available) | code execution 활성화 또는 비활성화 |
model | string | grok-4-1-fast | code execution 요청에 사용할 모델 |
maxTurns | number | — | 최대 대화 턴 수 |
timeoutSeconds | number | — | 초 단위 요청 타임아웃 |
이것은 로컬
exec가 아니라 원격 xAI sandbox 실행입니다.알려진 제한 사항
알려진 제한 사항
- 현재 auth는 API 키만 지원합니다. OpenClaw에는 아직 xAI OAuth 또는 device-code 흐름이 없습니다.
grok-4.20-multi-agent-experimental-beta-0304는 표준 OpenClaw xAI 전송 계층과 다른 업스트림 API 표면이 필요하므로 일반 xAI provider 경로에서는 지원되지 않습니다.
고급 참고
고급 참고
- OpenClaw는 공용 runner 경로에서 xAI 전용 tool-schema 및 tool-call 호환성 수정을 자동으로 적용합니다.
- 기본 xAI 요청은 기본적으로
tool_stream: true를 사용합니다. 이를 비활성화하려면agents.defaults.models["xai/<model>"].params.tool_stream을false로 설정하세요. - 번들된 xAI 래퍼는 기본 xAI 요청을 보내기 전에 지원되지 않는 strict tool-schema 플래그와 reasoning payload keys를 제거합니다.
web_search,x_search,code_execution은 OpenClaw tools로 노출됩니다. OpenClaw는 모든 채팅 턴에 모든 기본 tools를 붙이는 대신 각 tool 요청 안에서 필요한 특정 xAI 내장 기능만 활성화합니다.x_search와code_execution은 코어 모델 런타임에 하드코딩된 것이 아니라 번들된 xAI Plugin이 소유합니다.code_execution은 로컬exec가 아니라 원격 xAI sandbox 실행입니다.
관련 문서
모델 선택
providers, model refs, failover 동작 선택하기.
비디오 생성
공용 비디오 tool parameters와 provider 선택.
모든 providers
더 넓은 provider 개요.
문제 해결
일반적인 문제와 해결 방법.