sdk/apps/examples/cli-agent/README.md
An interactive terminal chat agent with streaming output and a shell tool. Type messages, get responses, and let the agent run shell commands on your behalf.
Install dependencies:
bun install
bun run build:sdk
Set an API key:
export CLINE_API_KEY="cline_..."
Run:
bun dev
Type any message at the you: prompt to see a streaming response from the agent.
Agent with a shell tool using createToolassistant-text-delta events to stdout as the agent respondsagent.run() for the first message and agent.continue() for follow-ups to maintain conversation contextcreateTool with zod schema validationrun() / continue()systemPrompt configurationFor the simplest possible example, see quickstart. For structured workflows with multiple tools, see code-review-bot.