跳到正文Skip to content
Agent J Beta
菜单Menu
中文EN
登录Sign in

搜索文档和页面Search docs and pages

文档Docs

用火山方舟 Agent Plan / Coding PlanUse a Volcano Ark Agent Plan / Coding Plan

在中国大陆用字节跳动的火山方舟套餐驱动 Agent J:现在开通的是 Agent Plan(先买 Medium),已有 Coding Plan 照常用;key 贴进手机密钥卡,用 OpenCode 或 Claude Code,默认豆包 Seed 2.1 Pro 能看截图。Run Agent J in mainland China on a ByteDance Volcano Ark plan: new subscriptions are the Agent Plan (start with Medium), an existing Coding Plan keeps working; paste the key into the phone key card, use OpenCode or Claude Code; the default Doubao Seed 2.1 Pro reads screenshots.

火山方舟是字节跳动(抖音、豆包同一家)的火山引擎上的模型平台。它提供 Agent Plan、已有用户继续使用的 Coding Plan,以及按量付费。三者的地址、key 和模型 ID 要分别配置,不能混用。OpenCode 的完整配置与报错排查见用 OpenCode 接火山方舟 Agent Plan。

大陆推荐豆包最新 Pro 做主线程、Claude Code / Codex 执行后台任务;如果后台工具使用中转账号,见Agents Relay 配置指南。

还没决定用哪家?先看按你用的模型选。安装、配对手机这些每家都一样的事,看安装和手机上怎么用。

适合谁

  • 在中国大陆,Claude Code 和 Codex 用不了,三家都还没有:我们首推它。方舟现在卖的是 Agent Plan,按下面 Agent Plan 那一节做。
  • 已经开通了方舟 Coding Plan:直接用,不用再买别的,接入时加 --plan coding。
  • 在香港或海外:方舟的海外版叫 BytePlus,模型比大陆版旧,Agent J 也还没有它的一键配置。海外建议用 Kimi。

现在开通:Agent Plan

火山方舟现在卖的是 Agent Plan,按月订阅,分 Small、Medium、Large、Max 四档,价格以下单页为准。先买 Medium(含 Kimi K3.1 Pro),可用模型以当前套餐为准,不够再升级。它和本页后面的 Coding Plan 是两个套餐,地址不同,key 也不同。

  1. 打开方舟控制台 https://console.volcengine.com/ark/ ,用手机号注册火山引擎、完成实名,订阅 Agent Plan。
  2. 拿 key:在控制台进入 订阅 → Agent Plan → 使用配置,那里的专属 API Key 才是这个套餐的 key。不是 API Key 管理里新建的那种,那种在 Agent Plan 的地址上会报 401。先别复制给任何人。
  3. 跟Agent J 主机上的 Agent 说一句:帮我接上火山方舟 Agent Plan。它会运行下面这条,把 Agent Plan 的模型写进 OpenCode 的设置,你原来的设置一项都不动:
agentj provider ark
  1. 再运行它打印出来的那条密钥卡命令。手机上弹出密钥卡,名称是 ARK_AGENT_PLAN_API_KEY,你只把专属 API Key 贴进卡里。
  2. 重启后台服务,再切到方舟的默认模型:
agentj service restart
agentj agent switch opencode --model ark-agent-plan/doubao-seed-2.1-pro

切换前 Agent J 会先用 OpenCode 真实问一句,通了才切;不通就不切,并把 OpenCode 报错的原话带给你。OpenCode 1.x 和 2.x 都能这样切。想用 Claude Code,见下面能用的 AI 编程工具那一节,接法一样。

技术细节:Agent Plan 的地址和名字
  • OpenCode 里的自定义服务商名是 ark-agent-plan,模型写成 ark-agent-plan/<模型>。Agent Plan 模型清单独立更新,不是 Coding Plan 清单删去一项;见下面的当前官方模型清单。
  • OpenAI 兼容地址:https://ark.cn-beijing.volces.com/api/plan/v3;Claude Code 用的 Anthropic 兼容地址:https://ark.cn-beijing.volces.com/api/plan。
  • 不要改成 …/api/v3:那是按量付费的地址,会另外扣钱。

下面是已经开通了 Coding Plan 的做法。

开通与套餐

  1. 打开火山方舟 Coding Plan 的官方活动页 https://www.volcengine.com/activity/codingplan ,用手机号注册火山引擎,完成实名认证。
  2. 订阅 Coding Plan,先买 Lite。Lite 和 Pro 能用的模型和工具完全一样(包括 Kimi K3.1 Pro),Pro 只是用量是 Lite 的 5 倍。额度不够再升级。

已有套餐的价格、续费和用量以官方页面为准,见 Coding Plan 常见问题。不要按已结束的活动价格下单。

拿 key

  1. 打开方舟控制台 https://console.volcengine.com/ark/ ,在 API Key 管理里新建一把 key。
  2. 先别复制给任何人。 等手机上弹出密钥卡再贴。

把 key 交给 Agent J

跟Agent J 主机上的 Agent 说一句:帮我接上火山方舟 Coding Plan。它会这样做:

  1. 运行下面这条,把已配置的 Coding Plan 模型写进 OpenCode 的设置。你原来的设置一项都不动。
agentj provider ark --plan coding
  1. 运行它打印出来的那条密钥卡命令。手机上弹出密钥卡,名称是 ARK_CODING_PLAN_API_KEY,你只把 key 贴进卡里。
  2. 重启后台服务,再切到方舟的默认模型:
agentj service restart
agentj agent switch opencode --model ark-coding-plan/doubao-seed-2.1-pro

Agent J 切换前会用 OpenCode 真实问一句,成功才切。切换后可让它只回复 OK,确认正常响应;模型自称豆包不能证明实际模型 ID。

密钥卡怎么用,见手机上录入密钥。

能用的 AI 编程工具

Agent J 目前支持用下面两个工具接方舟。方舟官方另有 arkcli,可管理资源、查询套餐和用量、调用模型并帮助配置 OpenCode;Agent J 尚未把它接成可切换的主工具,详见 arkcli 的关系。

  • OpenCode(默认):上面那几步就是。没装 OpenCode 的,见装好 AI 命令行工具。
  • Claude Code:你本来就习惯 Claude Code 时用。让 Agent 运行下面这条,它会打印三步,照着顺序做:存一份方舟的配置、弹密钥卡、启用这份配置。最后一步会先真发一句测试,通过了才改设置。
技术细节:接 Claude Code 的那条命令

Agent Plan:

agentj provider ark --harness claude

已有 Coding Plan:

agentj provider ark --harness claude --plan coding

Agent J 会把 Claude Code 的 Haiku、Sonnet、Opus 和子 Agent 都指向同一个方舟模型,后台任务就不会去向方舟要 Claude 的模型名而失败。

模型与看图

2026-11-11 核对的 Agent Plan 官方模型清单包含以下文本模型 ID:

  • 豆包:doubao-seed-2.0-mini、doubao-seed-2.1-lite、doubao-seed-2.1-pro、doubao-seed-evolving。
  • GLM:glm-5.3(别名 glm-latest)、glm-5.3-flash。
  • DeepSeek:deepseek-v4-flash、deepseek-v4-pro、deepseek-v4.1-flash、deepseek-v4.1-flash-economy。
  • Kimi:kimi-k2.8-preview、kimi-k3.1-pro。kimi-k3 于 2026-11-25 14:00(UTC+8)在 Agent Plan 个人版和 Coding Plan 个人版下线,方舟给出的替代型号是 kimi-k3.1-pro,Small 到 Max 四档都有;可用性以当前套餐为准。

这是官方可用模型清单,不代表 Agent J 已对每个模型完成看图测试或写入全部预设。套餐 ID 不带按量版日期后缀。Coding Plan 的模型清单另查原套餐说明,不从 Agent Plan 清单推导。

下面保留我们此前完成的看图测试,测试范围和日期见表后说明。deepseek-v4-1-flash 是当时的测试 ID,不是当前 Agent Plan 的 deepseek-v4.1-flash:

用途模型能看截图
默认,日常加截图doubao-seed-2.1-pro能(实测)
最强kimi-k3.1-pro方舟官方配置写支持,我们还没实测
便宜、快,也能看图deepseek-v4-1-flash能(实测)
纯文本写代码glm-5.3、deepseek-v4-pro、deepseek-v4-flash不能

“实测”指 2026-10-16 我们在Agent J 主机上发一张软件截图,让模型读出弹窗标题、错误码、按钮上的字和表格里的金额,全部读对。kimi-k3 当时也实测能看图;替代它的 kimi-k3.1-pro 还没做这项测试。手机上发 /model 能看到全部模型。Agent J 写进 OpenCode 的设置里,只给实测或官方标明支持看图的模型打开了图片输入,其余一律按纯文本处理。

用纯文本模型时,你从手机发截图、或者浏览器自动化要看页面,模型都看不到,会说没收到图片。这时换回 doubao-seed-2.1-pro 就行。

常见坑

  • 报 401 或 403:先核对套餐和 key 来源、服务进程是否实际拿到了环境变量。Agent Plan 要用套餐专属 key,不要去 API Key 管理中新建按量 key 代替。
  • 选了 kimi-k3,每轮对话都失败:方舟于 2026-11-25 14:00(UTC+8)下线这个型号。在手机「模型和 API Key」里改选 kimi-k3.1-pro;或者把 Agent J 主机升级到 0.30.71,它会自动换过去并提示一次。
  • 提示另外计费:用错了地址。Agent J 写的是套餐专用的地址,不要自己手改。
  • Coding Plan 不能生图:套餐里没有生图模型。
  • 定时任务、客服 bot:Agent Plan 官方对文本生成和向量化模型限制非 AI 工具的 API 调用;不要把套餐 key 当成通用 API key。Agent J 不会把编程套餐 key 交给客服 bot。媒体能力另按套餐官方支持范围,不套用文本模型规则。

切回原来的工具

随时跟 Agent 说“切回 Claude Code”(或 Codex),它会先检查、能用才切。也可以自己在Agent J 主机上运行:

agentj agent switch claude

想原样换回上一次切走前的那个:

agentj agent switch --undo

切换的细节见换 AI 编程工具。

技术细节:地址和名字
  • OpenCode 里的服务商名是 ark-coding-plan,模型写成 ark-coding-plan/<模型>。
  • OpenAI 兼容地址:https://ark.cn-beijing.volces.com/api/coding/v3;Claude Code 用的 Anthropic 兼容地址:https://ark.cn-beijing.volces.com/api/coding。这两个都是套餐专用地址。
  • key 的环境变量名:OpenCode 用 ARK_CODING_PLAN_API_KEY;Claude Code 那份配置有自己的私有 key 文件,位置由 Agent J 打印的第二步给出。

Volcano Ark is the model platform on ByteDance's Volcano Engine cloud (the company behind Douyin and Doubao). It offers Agent Plan, Coding Plan for existing subscribers, and pay-as-you-go access. Match each plan’s URL, key and model ID rather than mixing them. See Connect OpenCode to Volcano Ark Agent Plan for the complete configuration and troubleshooting guide.

For mainland China, use the latest Doubao Pro as your main Agent and delegate background work to Claude Code or Codex; Agents Relay setup explains the relay-account option.

Not sure which vendor to pick? Start at Choose by your model. Installing and pairing your phone are the same for every vendor: see Install and Using it on your phone.

Who it is for

  • Mainland China, Claude Code and Codex not available, none of the three plans yet: our first recommendation. Ark now sells the Agent Plan: follow the Agent Plan section below.
  • You already have an Ark Coding Plan: use it; there is nothing else to buy. Add --plan coding when you set it up.
  • Hong Kong or abroad: Ark's overseas edition, BytePlus, has older models, and Agent J has no one-step setup for it yet. Abroad we suggest Kimi.

Subscribe now: the Agent Plan

Volcano Ark now sells the Agent Plan, a monthly subscription in four sizes: Small, Medium, Large and Max; the order page is authoritative for prices. Start with Medium (Kimi K3.1 Pro included); your current plan decides which models you have, and you can upgrade if it runs short. It is a different plan from the Coding Plan further down this page, with its own address and its own key.

  1. Open the Ark console https://console.volcengine.com/ark/ , sign up to Volcano Engine with your phone number, verify your identity and subscribe to the Agent Plan.
  2. Get the key: in the console go to Subscription → Agent Plan → Usage configuration; the plan's own API key shown there is the one. A key created under API Key management is not: it gets 401 on the Agent Plan's address. Do not copy it to anyone yet.
  3. Tell the Agent on your Agent J host: connect the Volcano Ark Agent Plan. It runs this, which adds the Agent Plan's models to OpenCode's settings and leaves everything you already had untouched:
agentj provider ark
  1. It then runs the key card command it printed. A key card named ARK_AGENT_PLAN_API_KEY opens on your phone; paste the plan's own API key there and nowhere else.
  2. Restart the background service, then switch to Ark's default model:
agentj service restart
agentj agent switch opencode --model ark-agent-plan/doubao-seed-2.1-pro

Before switching, Agent J asks OpenCode one real question; only if it answers does the switch happen. If not, nothing is switched and you see OpenCode's own error line. This works with OpenCode 1.x and 2.x. For Claude Code, see AI coding tools below; it works the same way.

Technical details: the Agent Plan's addresses and names
  • The custom OpenCode provider is ark-agent-plan; models are written ark-agent-plan/<model>. Agent Plan has its own changing model catalogue, rather than the Coding Plan list minus one model; see the current official list below.
  • OpenAI-compatible address: https://ark.cn-beijing.volces.com/api/plan/v3; the Anthropic-compatible address Claude Code uses: https://ark.cn-beijing.volces.com/api/plan.
  • Never change it to …/api/v3: that is the pay-as-you-go address and is billed on top.

What follows is for an existing Coding Plan.

Sign up and pick a plan

  1. Open the official Coding Plan page https://www.volcengine.com/activity/codingplan , sign up to Volcano Engine with your phone number and complete identity verification.
  2. Subscribe to the Coding Plan, Lite to start. Lite and Pro have exactly the same models and tools (Kimi K3.1 Pro included); Pro only gives five times Lite's usage. Upgrade when you run short.

The official pages are authoritative for prices, renewal and usage of an existing plan. See the Coding Plan FAQ; do not rely on an expired promotion when ordering.

Get the key

  1. Open the Ark console https://console.volcengine.com/ark/ and create a key under API Key management.
  2. Do not copy it to anyone yet. Wait for the key card on your phone and paste it there.

Hand the key to Agent J

Tell the Agent on the Agent J host: connect my Volcano Ark Coding Plan. It will:

  1. Run this to add the configured Coding Plan models to OpenCode. Existing settings are preserved.
agentj provider ark --plan coding
  1. Run the key card command it prints. A key card named ARK_CODING_PLAN_API_KEY opens on your phone; paste the key there and nowhere else.
  2. Restart the background service, then switch to Ark's default model:
agentj service restart
agentj agent switch opencode --model ark-coding-plan/doubao-seed-2.1-pro

Agent J makes a real call through OpenCode before switching and switches only after success. Afterwards, ask it to reply only OK and check for a normal response. A model naming itself Doubao does not establish its actual model ID.

How the key card works: Admin rights and API keys, from your phone.

AI coding tools

Agent J supports these two tools for Ark. Ark also has the official arkcli for resource management, plan and usage queries, model calls and OpenCode setup. Agent J does not expose it as a switchable main tool; see The official arkcli.

  • OpenCode (the default): the steps above. OpenCode not installed yet? See Set up AI command-line tools.
  • Claude Code: if Claude Code is what you are used to. Ask the Agent to run the line below; it prints three steps to run in order: save an Ark profile, open the key card, use the profile. The last step sends one real test message and changes the settings only if it works.
Technical details: the Claude Code command

Agent Plan:

agentj provider ark --harness claude

Existing Coding Plan:

agentj provider ark --harness claude --plan coding

Agent J points Claude Code's Haiku, Sonnet and Opus models and its subagent model at the same Ark model, so background work never asks Ark for a Claude model name and fails.

Models and screenshots

The official Agent Plan model list, checked on 2026-11-11, includes these text-model IDs:

  • Doubao: doubao-seed-2.0-mini, doubao-seed-2.1-lite, doubao-seed-2.1-pro, doubao-seed-evolving.
  • GLM: glm-5.3 (alias glm-latest), glm-5.3-flash.
  • DeepSeek: deepseek-v4-flash, deepseek-v4-pro, deepseek-v4.1-flash, deepseek-v4.1-flash-economy.
  • Kimi: kimi-k2.8-preview, kimi-k3.1-pro. Ark retires kimi-k3 from the personal Agent Plan and the personal Coding Plan on 2026-11-25 at 14:00 (UTC+8); the replacement Ark names is kimi-k3.1-pro, available in all four sizes from Small to Max. Current plan availability is authoritative.

This is the vendor's availability list, not a claim that Agent J has screenshot-tested or preset every entry. Plan IDs do not use pay-as-you-go date suffixes. Check Coding Plan's own catalogue separately rather than deriving it from Agent Plan.

Our earlier screenshot tests are retained below, with their scope and date explained after the table. deepseek-v4-1-flash is the ID used in that historical test, not the current Agent Plan ID deepseek-v4.1-flash:

UseModelReads screenshots
Default, everyday work and screenshotsdoubao-seed-2.1-proYes (tested)
Strongestkimi-k3.1-proArk's official configuration says yes; not yet tested by us
Cheaper, fast, reads images toodeepseek-v4-1-flashYes (tested)
Text-only codingglm-5.3, deepseek-v4-pro, deepseek-v4-flashNo

Tested means: on 2026-10-16 we sent a software screenshot and asked the model for the dialog title, the error code, the button text and an amount in a table; it got all of them right. kimi-k3 also passed that test; its replacement kimi-k3.1-pro has not been through it yet. Send /model on your phone to see every model. In the OpenCode settings Agent J writes, image input is on only for models we tested or the vendor marks as reading images; the rest are treated as text only.

With a text-only model, a screenshot from your phone or a page the browser automation needs to look at never reaches the model, and it says it got no image. Switch back to doubao-seed-2.1-pro.

Common problems

  • 401 or 403: check the plan, key source and environment inherited by the actual process. Agent Plan needs its dedicated key; a new pay-as-you-go key under API Key management will not fix that mismatch.
  • Every turn fails after you picked kimi-k3: Ark retires this model on 2026-11-25 at 14:00 (UTC+8). Pick kimi-k3.1-pro under "Models & API keys" on your phone, or upgrade the Agent J host to 0.30.71, which moves the choice for you and tells you once.
  • A message about separate billing: the wrong address is in use. Agent J writes the plan's own address; do not change it by hand.
  • No image generation: the Coding Plan has no image-generation model.
  • Scheduled tasks, support bots: Agent Plan restricts API use of text-generation and embedding models outside AI tools. Do not treat a plan key as a general-purpose API credential. Agent J does not hand coding-plan keys to support bots. Media capabilities have their own official plan rules; the text-model restriction does not describe every media feature.

Switch back

Tell the Agent at any time: switch back to Claude Code (or Codex). It checks first and switches only if that works. Or run it on the Agent J host yourself:

agentj agent switch claude

To go straight back to the tool you used before the last switch:

agentj agent switch --undo

Details: Switch AI coding tool.

Technical details: addresses and names
  • In OpenCode the provider is ark-coding-plan; models are written ark-coding-plan/<model>.
  • OpenAI-compatible address: https://ark.cn-beijing.volces.com/api/coding/v3; the Anthropic-compatible address Claude Code uses: https://ark.cn-beijing.volces.com/api/coding. Both are the plan's own addresses.
  • Key variable: OpenCode reads ARK_CODING_PLAN_API_KEY; the Claude Code profile keeps its own private key file, whose location Agent J prints in step two.

这一页的 Markdown 原文This page as Markdown: zh.md · en.md