---
title: "Shiba agent"
description: "Shiba's built-in coding agent for API-key providers — any supported model, no vendor CLI."
---

> Documentation Index
> Fetch the complete documentation index at: https://tryshiba.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Shiba agent

The Shiba agent is Shiba's own coding agent. It exists so a task can run on any supported API-key model — including providers that have no first-party coding CLI — without installing anything extra in the sandbox image.

## Agent Overview

| Attribute | Specification |
| --- | --- |
| **Harness ID** | `builtin` |
| **CLI Binary** | `node` — Shiba's agent script, written into the sandbox at run time (nothing installed in the image) |
| **Default Model** | `deepseek/deepseek-chat` |
| **Supported Providers** | DeepSeek, OpenAI, Anthropic, Google (Gemini), xAI, OpenRouter, Groq, Mistral, Z.ai, MiniMax, Qwen, Kimi, Meta |
| **Runtime** | Cloud sandbox only (not available on a paired computer) |
| **Credential Model** | AI Gateway BYOK (dummy key inside sandbox; real key injected at egress) |

## How It Works

The agent script speaks one of two wire protocols to the model provider: OpenAI-compatible chat completions, or the Anthropic Messages API. It gives the model a fixed set of tools, all confined to the workspace:

- read, write and edit files
- list a directory
- search
- run a command (with a per-command timeout)
- finish

```
Developer Request
  └── delegate_coding_task({ harness: "builtin" })
      └── Human signs off on exact prompt & repository
          └── Ephemeral Cloudflare Sandbox boots
              ├── Writes Shiba's agent script for this run
              ├── Executes it with node
              ├── Streams newline-delimited JSON events
              └── Collects git status and builds unified diff
```

The agent runs through the same sandbox adapter as every other harness, so checkpoints, the diff, and verification work the same way.

> **Credential boundary**
>
> The container only ever sees a dummy key. The egress proxy swaps in your AI Gateway BYOK credential for the selected provider, so the real key never enters the sandbox.

## Selecting the Shiba agent in a Task

Pick **Shiba agent** under *Agent harness* in the task composer, or pass the harness explicitly:

```json
{
  "repoUrl": "https://github.com/acme/web",
  "task": "Add dark mode toggle to navigation bar",
  "baseBranch": "main",
  "harness": "builtin",
  "codingModel": "deepseek/deepseek-chat"
}
```

## Related Documentation

- [Coding Harnesses Overview](/docs/claude-code/)
- [Models & Costs](/docs/costs/)
- [Security & Credential Boundaries](/docs/security/)

Source: https://tryshiba.dev/docs/agents/shiba-agent/index.mdx
