← Plugins

Doubao CLI

孟世博5installs

Doubao coding agent provider for Paseo, built on the official doubao CLI

$ paseo plugin add exposir/doubao-cli
Doubao CLI screenshot 1Doubao CLI screenshot 2

Doubao CLI provider adds ByteDance's official doubao coding agent CLI to Paseo as a provider (doubao). Conversations run inside Paseo's normal agent view with streaming responses, native session resume, dynamic model and reasoning-effort discovery, and tool call cards. This is a community plugin and is not affiliated with ByteDance or Paseo.

How it works

The plugin includes two zero-dependency transports over local stdio subprocesses on the daemon machine:

  • acp (default): speaks bidirectional JSON-RPC 2.0 to doubao acp serve, keeps a per-session stdio runtime that is reclaimed after 5 minutes of inactivity by default, and transparently restores bound cloud sessions via session/load.
  • stream-json (opt-in via DOUBAO_PASEO_TRANSPORT=stream-json): spawns one doubao -p - --output-format stream-json process per turn, passes the prompt over stdin, and resumes existing conversations with --resume. No CLI process stays resident while idle.

Models, per-model reasoning-effort options, and defaults are discovered dynamically from doubao model list --output-format json and cached for 5 minutes per launch environment and working directory. Existing sessions are listed through doubao --list --output-format json or ACP session/list.

Setup

  • Install and sign in to the official doubao CLI on the Paseo daemon host so doubao auth status exits with code 0 (run doubao login if needed).
  • Ensure doubao is on the daemon's PATH or configured via the provider command override.
  • Requirements: Paseo >=0.15.0 and Node.js >=22 on the daemon host. Tested on Linux and macOS against Doubao CLI 2.38.4 and Paseo 0.15.0, 0.17.6, and 0.18.1.
  • Optional environment variables on the daemon tune transport and resource limits: DOUBAO_PASEO_TRANSPORT (acp default, or stream-json), DOUBAO_PASEO_MAX_TURNS (default 4), DOUBAO_PASEO_MAX_TURN_MS (default 1800000), DOUBAO_PASEO_STALL_MS (default 600000), DOUBAO_PASEO_IDLE_MS (ACP only, default 300000), DOUBAO_PASEO_MAX_TEXT_BYTES (default 4194304), DOUBAO_PASEO_MAX_STDERR_BYTES (default 65536), DOUBAO_PASEO_MAX_PROMPT_BYTES (default 1048576), DOUBAO_PASEO_MIN_FREE_DISK_MB (default 512), and DOUBAO_PASEO_SUPPRESS_NOTICES=1.
  • The plugin does not download or install external software at runtime.

Capabilities

  • Streaming assistant text with coalesced timeline updates and tool cards (shell, read, write, edit, search, fetch, think, switch_mode).
  • Cross-transport native session resume: both transports read each other's persisted Doubao session ID when the cloud session is still available.
  • Default ACP mode supports interactive tool approval prompts (session/request_permission), structured user questions (elicitation/create), image attachments materialized as session-private temporary files (0700/0600) for Doubao's native Read tool, workspace-confined fs/read_text_file callbacks (up to 64 KiB cumulative resource_link budget per turn), reasoning streams, plan/todo updates, slash commands and cloud skills, first-turn systemPrompt delivery, stdio MCP server forwarding, and opt-in history replay.
  • Resource guards enforce concurrency limits, turn and stall watchdogs, UTF-8-safe output/stderr truncation, free-disk checks before turns, and POSIX process-group teardown with orphan cleanup.

Data access, permissions, and limitations

  • The plugin runs doubao as the daemon's operating system user with the daemon environment and adds no sandbox of its own. Prompts, selected workspace file excerpts, image attachments, and tool execution outputs are passed to the local doubao CLI, which transmits them to Doubao's cloud service according to your Doubao account configuration. The plugin makes no direct network requests of its own.
  • In default ACP mode, tool approval requests are routed interactively to the Paseo UI. If you explicitly opt into headless stream-json mode (DOUBAO_PASEO_TRANSPORT=stream-json), Paseo cannot intercept interactive tool approvals: workspace actions run without confirmation while server-gated approvals are automatically denied by the CLI. Run the daemon or workspace inside a container or dedicated user if isolation is required.
  • Upstream Doubao CLI 2.38.4 boundaries over ACP: output blocks are text-only (generated images and files arrive as links or paths), auto permission mode is not exposed, HTTP/SSE MCP servers are filtered out (only stdio is supported), and usage_update, mid-turn steering, session/revert, and session/archive are not implemented upstream.
  • See the repository README for local development and manual setup instructions.

Related plugins

Browse all plugins →