llama.cpp Provider
기준일: 2026-07-26
공식 기준: llama.cpp Provider
llama.cpp Provider 문서는 OpenClaw 공식 문서(plugins/llama-cpp)를 한국어로 정리한 가이드입니다. Run local GGUF text inference and memory embeddings in OpenClaw with llama.cpp 명령·설정 키·코드 예시는 공식 문서를 그대로 보존하며, 해석과 절차 안내는 한국어로 제공합니다. 최종 동작은 설치된 CLI 버전과 공식 원문을 확인하세요.
핵심 요약
Run local GGUF text inference and memory embeddings in OpenClaw with llama.cpp
한국어 가이드 범위: plugins/llama-cpp 경로의 설정·명령·제약·예시를 학습용으로 재구성합니다.
문서 구성
공식 문서의 주요 섹션은 다음과 같습니다.
- Local text inference
- Use another GGUF model
- Memory embedding configuration
- Native runtime
- Memory runtime diagnostics
- 트러블슈팅
상세 내용
본문
llama-cpp is the official external provider plugin for in-process local GGUF text inference and embeddings. It registers text provider llama-cpp, embedding provider local, and owns the node-llama-cpp native runtime.
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
openclaw plugins install @openclaw/llama-cpp-provider
Local text inference
Choose Local model (llama.cpp) during interactive onboarding. OpenClaw asks before downloading the default model:
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
Use another GGUF model
Add a model to models.providers.llama-cpp. Put a local path or full hf: file URI in params.modelPath:
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
{
models: {
mode: "merge",
providers: {
"llama-cpp": {
baseUrl: "local://llama-cpp",
api: "openai-completions",
params: {
modelCacheDir: "~/.node-llama-cpp/models",
},
models: [
{
id: "my-local-model",
name: "My local GGUF",
reasoning: false,
input: ["text"],
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
contextWindow: 8192,
maxTokens: 2048,
params: {
modelPath: "~/Models/my-model.Q4_K_M.gguf",
contextSize: 8192,
},
compat: { supportsTools: true },
},
],
},
},
},
agents: {
defaults: {
model: { primary: "llama-cpp/my-local-model" },
},
},
}
Memory embedding configuration
local.modelPath defaults to the hf: URI shown above (embeddinggemma-300m-qat-Q8_0.gguf). Point it at a different hf: URI or a local .gguf file to use another model. local.modelCacheDir overrides where downloaded models are cached (default: ~/.node-llama-cpp/models), and local.contextSize accepts an integer or "auto".
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
{
memory: {
search: {
provider: "local",
local: {
modelPath: "hf:ggml-org/embeddinggemma-300m-qat-q8_0-GGUF/embeddinggemma-300m-qat-Q8_0.gguf",
},
},
},
}
Native runtime
Use Node 24 for the smoothest native install path. Source checkouts using pnpm may need to approve and rebuild the native dependency:
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
pnpm approve-builds
pnpm rebuild node-llama-cpp
Memory runtime diagnostics
Run openclaw memory status --deep after the provider has loaded to inspect the selected backend and build, device names, GPU offloaded layers, requested context size, and the last observed VRAM or unified-memory snapshot. The VRAM values include an observation timestamp because passive status reads do not reload the model or poll the device.
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
트러블슈팅
If node-llama-cpp is missing or fails to load, OpenClaw reports the failure with:
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
실습 체크리스트
- 공식 문서와 로컬 버전을 대조합니다:
https://docs.openclaw.ai/plugins/llama-cpp - 관련 CLI는
openclaw --help및 하위 명령--help로 옵션을 확인합니다. - 설정 변경 시
openclaw config/openclaw doctor로 유효성을 검사합니다. - Gateway·채널·플러그인 변경 후에는 필요 시 Gateway를 재시작합니다.
자주 쓰는 명령·설정 예시
openclaw plugins install @openclaw/llama-cpp-provider
{
models: {
mode: "merge",
providers: {
"llama-cpp": {
baseUrl: "local://llama-cpp",
api: "openai-completions",
params: {
modelCacheDir: "~/.node-llama-cpp/models",
},
models: [
{
id: "my-local-model",
name: "My local GGUF",
reasoning: false,
input: ["text"],
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
contextWindow: 8192,
maxTokens: 2048,
params: {
modelPath: "~/Models/my-model.Q4_K_M.gguf",
contextSize: 8192,
},
compat: { supportsTools: true },
},
],
},
},
},
agents: {
defaults: {
model: { primary: "llama-cpp/my-local-model" },
},
},
}
{
memory: {
search: {
provider: "local",
local: {
modelPath: "hf:ggml-org/embeddinggemma-300m-qat-q8_0-GGUF/embeddinggemma-300m-qat-Q8_0.gguf",
},
},
},
}
pnpm approve-builds
pnpm rebuild node-llama-cpp
관련 링크
- 공식 원문: plugins/llama-cpp
- OpenClaw 문서 홈
이 가이드는 공식 문서를 한국어 학습용으로 재구성한 것입니다. 옵션 기본값·플래그 이름은 설치 버전에 따라 달라질 수 있습니다.