Agent workflow

Use Kimi K3 Agent Locally

Set up a local Kimi K3 agent workflow with Kimi Code, Kimi Claw, OpenClaw, K3Nova, provider IDs, and safety checks.

Local agent workflow checklist for Kimi K3
Runbookreading path
Kimi K3frontier example
7source links
2026-07-29updated

Goal and short answer

Use Kimi K3 agent locally by keeping the tool close to your machine and the credentials in a documented configuration path. The agent can run in Kimi Code, Kimi Claw/OpenClaw, or a K3Nova local workspace while Kimi K3 inference is provided through an authorized endpoint.

Start with a small task that proves the agent can read context, call the model, preserve state, and recover from an error before you let it run longer work.

Copyable commands

Use an isolated data root when you want a clean local-agent test without disturbing your normal Kimi Code setup.

Create an isolated Kimi Code home

This keeps test config, sessions, logs, and credentials away from your default setup.

export KIMI_CODE_HOME="$HOME/.config/kimi-code-agent-test"
mkdir -p "$KIMI_CODE_HOME"
kimi doctor

Run the first local-agent task

Keep the prompt small so model access and tool behavior are easy to debug.

kimi -m k3-256k -p "Read the current directory name and describe the project type in one sentence."

Start the local web service

Use this when the workflow needs a local REST, WebSocket, and browser surface.

kimi web --no-open --port 58628

Return to your normal Kimi Code home

Unset the isolated home when the test is finished.

unset KIMI_CODE_HOME

Decision checklist

Use this section to keep the next step practical before you touch accounts, files, infrastructure, or hardware.

CheckLook forWhy it matters
Start narrowRun the smallest read-only check before commands that install, move, write, or call a provider.A small pass condition keeps the workflow reviewable.
Keep commands copyableUse exact commands without shell prompts and run one step at a time.This avoids accidental pasted characters or bundled side effects.
Protect accountsDo not paste raw API keys, billing data, OAuth codes, or private files into a guide page.Account-bound work belongs in the official product surface.
Record the resultWrite down the model ID, path, version, output, or error message that changed the decision.The next attempt should not have to rediscover the same state.

Runbook

Pick one local surface

Choose Kimi Code for coding, OpenClaw for gateway and tool-agent work, or K3Nova for web workspace testing.

Configure the model

Use the exact model ID and base URL expected by that surface. For OpenClaw, check the provider/model list. For Kimi Code, use the Kimi Code model docs.

Run a safe task

Ask for a short repo summary, a one-file review, or a small planning memo before granting broader tool access.

Record the pass condition

Save whether the model answered, tools worked, context persisted, and no credentials appeared in output.

First local-agent smoke test

CheckWhat to doPass condition
Model accessAsk a one-sentence questionThe selected model answers without fallback confusion
Tool accessRead a harmless local file or fixtureThe agent returns the expected detail
StateSend a follow-up in the same sessionIt remembers the task boundary
SafetySearch output for keys or private pathsNo secret or irrelevant private data appears

Notes before you continue

Local does not mean unsupervised

Even local agents should run with clear permissions, a small first task, and a human review point.

Credential boundary

Do not put provider keys in prompts, public files, or screenshots. Use config, local secrets, or server-side environment storage.

K3Nova workflow

K3Nova local pages can test the workspace, pricing boundary, docs, and guides before production model calls are enabled.

FAQ

Can a local Kimi K3 agent use tools?

Yes, depending on the surface and permissions you configure.

Does Kimi K3 need to be self-hosted for a local agent?

No. A local agent can call a hosted Kimi K3 endpoint.

What is the first failure to debug?

Check provider/model ID and credential path before changing the task prompt.

Further reading