@byteplus/ark-cli-darwin-x64 0.0.0-stage → 1.0.46-prerelease.dc921200a42d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/bin/arkcli-darwin-amd64 +4 -0
- package/manifest.json +43 -0
- package/package.json +20 -4
- package/skills/arkcli-agent/SKILL.md +152 -0
- package/skills/arkcli-agent/references/agent.md +398 -0
- package/skills/arkcli-agent/references/byok.md +65 -0
- package/skills/arkcli-agent/references/context-management.md +42 -0
- package/skills/arkcli-agent/references/debug-export.md +26 -0
- package/skills/arkcli-agent/references/evals.md +178 -0
- package/skills/arkcli-agent/references/events-chat.md +148 -0
- package/skills/arkcli-agent/references/interfaces-gaps.md +52 -0
- package/skills/arkcli-agent/references/mcp-vault.md +111 -0
- package/skills/arkcli-agent/references/model-config.md +46 -0
- package/skills/arkcli-agent/references/self-hosted.md +47 -0
- package/skills/arkcli-agent/references/session-files.md +149 -0
- package/skills/arkcli-agent/references/session-upgrade.md +61 -0
- package/skills/arkcli-agent/references/skills.md +87 -0
- package/skills/arkcli-agent/references/todo-write.md +31 -0
- package/skills/arkcli-api-explorer/SKILL.md +188 -0
- package/skills/arkcli-api-explorer/references/arkcli-api.md +180 -0
- package/skills/arkcli-api-explorer/references/evals.md +176 -0
- package/skills/arkcli-auth/SKILL.md +184 -0
- package/skills/arkcli-auth/references/arkcli-auth-login.md +92 -0
- package/skills/arkcli-auth/references/arkcli-auth-status.md +109 -0
- package/skills/arkcli-auth/references/arkcli-auth-whoami.md +56 -0
- package/skills/arkcli-auth/references/auth-modes.md +78 -0
- package/skills/arkcli-auth/references/evals.md +82 -0
- package/skills/arkcli-auth/references/identity-resolution.md +33 -0
- package/skills/arkcli-auth/references/realname-gate.md +69 -0
- package/skills/arkcli-billing/SKILL.md +122 -0
- package/skills/arkcli-billing/references/arkcli-billing-list.md +259 -0
- package/skills/arkcli-billing/references/evals.md +107 -0
- package/skills/arkcli-chat/SKILL.md +114 -0
- package/skills/arkcli-chat/references/arkcli-chat.md +283 -0
- package/skills/arkcli-chat/references/caching-thinking.md +124 -0
- package/skills/arkcli-chat/references/chat-meta.md +77 -0
- package/skills/arkcli-chat/references/evals.md +34 -0
- package/skills/arkcli-chat/references/stream-events.md +124 -0
- package/skills/arkcli-chat/references/text-format.md +167 -0
- package/skills/arkcli-chat/references/tools.md +119 -0
- package/skills/arkcli-config/SKILL.md +197 -0
- package/skills/arkcli-config/references/arkcli-config-init.md +89 -0
- package/skills/arkcli-config/references/arkcli-config-profile.md +106 -0
- package/skills/arkcli-config/references/evals.md +154 -0
- package/skills/arkcli-connect/SKILL.md +196 -0
- package/skills/arkcli-connect/references/arkcli-connect.md +165 -0
- package/skills/arkcli-connect/references/evals.md +231 -0
- package/skills/arkcli-custommodel/SKILL.md +167 -0
- package/skills/arkcli-custommodel/references/arkcli-custommodel-available-quantizations.md +29 -0
- package/skills/arkcli-custommodel/references/arkcli-custommodel-delete.md +37 -0
- package/skills/arkcli-custommodel/references/arkcli-custommodel-get.md +45 -0
- package/skills/arkcli-custommodel/references/arkcli-custommodel-list.md +65 -0
- package/skills/arkcli-custommodel/references/arkcli-custommodel-quantize.md +59 -0
- package/skills/arkcli-custommodel/references/arkcli-custommodel-update.md +47 -0
- package/skills/arkcli-custommodel/references/arkcli-custommodel-upload.md +64 -0
- package/skills/arkcli-custommodel/references/evals.md +59 -0
- package/skills/arkcli-datasets/SKILL.md +39 -0
- package/skills/arkcli-datasets/references/commands.md +83 -0
- package/skills/arkcli-datasets/references/evals.md +31 -0
- package/skills/arkcli-deploy/SKILL.md +89 -0
- package/skills/arkcli-deploy/references/arkcli-deploy.md +141 -0
- package/skills/arkcli-deploy/references/evals.md +80 -0
- package/skills/arkcli-docs/SKILL.md +453 -0
- package/skills/arkcli-docs/references/commands.md +283 -0
- package/skills/arkcli-docs/references/evals.md +201 -0
- package/skills/arkcli-docs/references/failure-modes.md +85 -0
- package/skills/arkcli-doctor/CONTRIBUTING.md +54 -0
- package/skills/arkcli-doctor/SKILL.md +367 -0
- package/skills/arkcli-doctor/references/error-codes.md +162 -0
- package/skills/arkcli-doctor/references/evals.md +385 -0
- package/skills/arkcli-doctor/references/scope-account.md +94 -0
- package/skills/arkcli-doctor/references/scope-cli.md +88 -0
- package/skills/arkcli-doctor/references/scope-infer-endpoint.md +132 -0
- package/skills/arkcli-doctor/references/scope-metrics.md +157 -0
- package/skills/arkcli-doctor/references/scope-model.md +130 -0
- package/skills/arkcli-doctor/references/verify-origin.md +102 -0
- package/skills/arkcli-gen/SKILL.md +188 -0
- package/skills/arkcli-gen/references/arkcli-gen.md +230 -0
- package/skills/arkcli-gen/references/gen-meta.md +154 -0
- package/skills/arkcli-gen/references/image-stream.md +105 -0
- package/skills/arkcli-helper/SKILL.md +200 -0
- package/skills/arkcli-helper/references/arkcli-helper.md +298 -0
- package/skills/arkcli-helper/references/evals.md +334 -0
- package/skills/arkcli-iam/SKILL.md +46 -0
- package/skills/arkcli-iam/references/arkcli-iam-userid.md +54 -0
- package/skills/arkcli-iam/references/evals.md +24 -0
- package/skills/arkcli-infer-endpoint/SKILL.md +82 -0
- package/skills/arkcli-infer-endpoint/references/arkcli-infer-endpoint-capability-get.md +50 -0
- package/skills/arkcli-infer-endpoint/references/arkcli-infer-endpoint-create.md +121 -0
- package/skills/arkcli-infer-endpoint/references/arkcli-infer-endpoint-delete.md +71 -0
- package/skills/arkcli-infer-endpoint/references/arkcli-infer-endpoint-get.md +43 -0
- package/skills/arkcli-infer-endpoint/references/arkcli-infer-endpoint-list.md +82 -0
- package/skills/arkcli-infer-endpoint/references/arkcli-infer-endpoint-start.md +36 -0
- package/skills/arkcli-infer-endpoint/references/arkcli-infer-endpoint-stop.md +36 -0
- package/skills/arkcli-infer-endpoint/references/arkcli-infer-endpoint-update.md +78 -0
- package/skills/arkcli-infer-endpoint/references/evals.md +24 -0
- package/skills/arkcli-models/SKILL.md +305 -0
- package/skills/arkcli-models/references/arkcli-models-activate.md +103 -0
- package/skills/arkcli-models/references/arkcli-models-get.md +94 -0
- package/skills/arkcli-models/references/arkcli-models-list.md +71 -0
- package/skills/arkcli-models/references/arkcli-models-scenario-table.md +75 -0
- package/skills/arkcli-models/references/arkcli-models-search.md +170 -0
- package/skills/arkcli-models/references/evals.md +57 -0
- package/skills/arkcli-onboard/SKILL.md +169 -0
- package/skills/arkcli-onboard/references/evals.md +156 -0
- package/skills/arkcli-plans/SKILL.md +135 -0
- package/skills/arkcli-plans/references/arkcli-plans-buy.md +125 -0
- package/skills/arkcli-plans/references/arkcli-plans-get.md +84 -0
- package/skills/arkcli-plans/references/arkcli-plans-model-apply.md +58 -0
- package/skills/arkcli-plans/references/arkcli-plans-model-list.md +114 -0
- package/skills/arkcli-plans/references/arkcli-plans-renew.md +125 -0
- package/skills/arkcli-plans/references/arkcli-plans-team-rotate-apikey.md +61 -0
- package/skills/arkcli-plans/references/arkcli-plans-team-seat-assign.md +147 -0
- package/skills/arkcli-plans/references/arkcli-plans-team-seat-list.md +100 -0
- package/skills/arkcli-plans/references/evals.md +178 -0
- package/skills/arkcli-pricing/SKILL.md +120 -0
- package/skills/arkcli-pricing/references/arkcli-pricing-models.md +258 -0
- package/skills/arkcli-pricing/references/arkcli-pricing-plans.md +139 -0
- package/skills/arkcli-profile/SKILL.md +168 -0
- package/skills/arkcli-profile/references/arkcli-profile-create.md +92 -0
- package/skills/arkcli-profile/references/arkcli-profile-keys.md +135 -0
- package/skills/arkcli-profile/references/arkcli-profile-set-default.md +81 -0
- package/skills/arkcli-profile/references/evals.md +93 -0
- package/skills/arkcli-resources/SKILL.md +112 -0
- package/skills/arkcli-resources/references/arkcli-resources-list.md +105 -0
- package/skills/arkcli-shared/SKILL.md +209 -0
- package/skills/arkcli-shared/references/global-flags.md +77 -0
- package/skills/arkcli-shared/references/profile-defaults.md +35 -0
- package/skills/arkcli-shared/references/troubleshooting.md +49 -0
- package/skills/arkcli-shared/references/update.md +117 -0
- package/skills/arkcli-train-finetune/SKILL.md +109 -0
- package/skills/arkcli-train-finetune/references/create.md +274 -0
- package/skills/arkcli-train-finetune/references/download.md +50 -0
- package/skills/arkcli-train-finetune/references/evals.md +59 -0
- package/skills/arkcli-train-finetune/references/export-deploy.md +179 -0
- package/skills/arkcli-train-finetune/references/list.md +79 -0
- package/skills/arkcli-train-finetune/references/manage.md +140 -0
- package/skills/arkcli-understand/SKILL.md +105 -0
- package/skills/arkcli-understand/references/arkcli-understand.md +249 -0
- package/skills/arkcli-understand/references/evals.md +109 -0
- package/skills/arkcli-understand/references/sub-skills.md +137 -0
- package/skills/arkcli-usage/SKILL.md +123 -0
- package/skills/arkcli-usage/references/arkcli-usage-balance.md +196 -0
- package/skills/arkcli-usage/references/arkcli-usage-plan.md +153 -0
- package/skills/arkcli-usage/references/arkcli-usage-seats.md +199 -0
- package/skills/arkcli-usage/references/arkcli-usage-stats.md +160 -0
- package/README.md +0 -3
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: arkcli-helper
|
|
3
|
+
version: 0.1.2
|
|
4
|
+
description: "Configure an IDE, editor, or supported local coding agent for BytePlus Platform, Coding Plan, or Coding Plan Team: use arkcli helper configure to connect Claude Code, Codex, OpenCode, OpenClaw, Hermes, Pi, or ZCode to a model/provider or Endpoint, helper list to inspect support, and helper reset for safe rollback. Prefer arkcli-helper over arkcli-auth or arkcli-config when the user's goal is wiring a model into a local coding client, even if profile or API-key setup is also mentioned. MCP injection and unsupported clients are outside the BytePlus Helper surface."
|
|
5
|
+
metadata:
|
|
6
|
+
requires:
|
|
7
|
+
bins: ["arkcli"]
|
|
8
|
+
cliHelp: "arkcli helper --help"
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# arkcli helper
|
|
12
|
+
|
|
13
|
+
Read [`../arkcli-shared/SKILL.md`](../arkcli-shared/SKILL.md) before running a
|
|
14
|
+
command. This Skill covers the BytePlus client configuration surface only.
|
|
15
|
+
|
|
16
|
+
## When To Trigger
|
|
17
|
+
|
|
18
|
+
Use this Skill when the user wants to:
|
|
19
|
+
|
|
20
|
+
- configure an IDE, editor, or coding agent for BytePlus, even when the user
|
|
21
|
+
does not name the exact harness yet;
|
|
22
|
+
- add, install, connect, or wire a model/provider into a local coding client;
|
|
23
|
+
- discover which local AI coding clients BytePlus Helper supports;
|
|
24
|
+
- configure Claude Code, Codex, OpenCode, OpenClaw, Hermes, Pi, or ZCode;
|
|
25
|
+
- connect a client to a BytePlus Platform Endpoint;
|
|
26
|
+
- configure a client from a `coding-plan` or `coding-plan-team` profile;
|
|
27
|
+
- inspect or remove configuration previously managed by arkcli;
|
|
28
|
+
- choose Codex profile scope versus global scope.
|
|
29
|
+
|
|
30
|
+
## When NOT To Trigger
|
|
31
|
+
|
|
32
|
+
- Use [`arkcli-auth`](../arkcli-auth/SKILL.md) for login, logout, identity, or
|
|
33
|
+
API key selection.
|
|
34
|
+
- Use [`arkcli-profile`](../arkcli-profile/SKILL.md) to inspect, create, or
|
|
35
|
+
switch profiles.
|
|
36
|
+
- Use [`arkcli-connect`](../arkcli-connect/SKILL.md) to install arkcli Skills
|
|
37
|
+
into local agents. It does not configure model providers.
|
|
38
|
+
- Use [`arkcli-infer-endpoint`](../arkcli-infer-endpoint/SKILL.md) to create,
|
|
39
|
+
start, or manage Platform Endpoints.
|
|
40
|
+
- Do not route MCP injection, database add-on setup, or unrelated subscription
|
|
41
|
+
families through BytePlus Helper. Do not fall back to another product or
|
|
42
|
+
tenant.
|
|
43
|
+
|
|
44
|
+
If a prompt mentions authentication or profiles only as prerequisites for
|
|
45
|
+
configuring an IDE, editor, or coding agent, keep the primary route on this
|
|
46
|
+
Skill and use `arkcli-auth` or `arkcli-profile` only for the blocking recovery
|
|
47
|
+
step. Generic local configuration with no client-integration goal belongs to
|
|
48
|
+
`arkcli-config`.
|
|
49
|
+
|
|
50
|
+
## Product Boundary
|
|
51
|
+
|
|
52
|
+
Supported profile types:
|
|
53
|
+
|
|
54
|
+
- `platform`
|
|
55
|
+
- `coding-plan`
|
|
56
|
+
- `coding-plan-team`
|
|
57
|
+
|
|
58
|
+
Supported harness IDs:
|
|
59
|
+
|
|
60
|
+
- `claude-code`
|
|
61
|
+
- `codex`
|
|
62
|
+
- `opencode`
|
|
63
|
+
- `openclaw`
|
|
64
|
+
- `hermes`
|
|
65
|
+
- `pi`
|
|
66
|
+
- `zcode`
|
|
67
|
+
|
|
68
|
+
Trae is not accepted because its current integration cannot write model
|
|
69
|
+
provider configuration. Always use `arkcli helper list` as the runtime source
|
|
70
|
+
of truth.
|
|
71
|
+
|
|
72
|
+
A Coding Plan model may be the routing model `ark-code-latest`. Switching its
|
|
73
|
+
route target (Auto smart scheduling or a pinned underlying model) is outside
|
|
74
|
+
this skill — use `arkcli plans model-apply --plan <plan> --model <target>`
|
|
75
|
+
(see [`../arkcli-plans/`](../arkcli-plans/SKILL.md)); it writes the control
|
|
76
|
+
plane and stays in sync with the console. When configuring a concrete model,
|
|
77
|
+
use only the VirtualModelID catalog exposed as `direct_models[].model_name` by
|
|
78
|
+
`plans model-list --mode direct`; do not treat LatestModel route
|
|
79
|
+
candidates in `models[].output_name` as directly invocable ModelNames.
|
|
80
|
+
|
|
81
|
+
## Command Map
|
|
82
|
+
|
|
83
|
+
| Command | Mode | Purpose |
|
|
84
|
+
|---|---|---|
|
|
85
|
+
| `arkcli helper` | Interactive, writes after confirmation | Select profile, Endpoint or model, and client in a TTY wizard. It may offer to install a missing client. |
|
|
86
|
+
| `arkcli helper list` | Read-only | List supported clients, installation state, and settings paths. No login is required. |
|
|
87
|
+
| `arkcli helper configure <harness>` | Non-interactive write | Write model/provider configuration for one supported client. It does not install the client. |
|
|
88
|
+
| `arkcli helper reset <harness>` | Non-interactive write | Remove only arkcli-managed model/provider configuration and preserve unrelated settings. |
|
|
89
|
+
|
|
90
|
+
## Execution Order
|
|
91
|
+
|
|
92
|
+
Routine Helper admission starts with `arkcli helper list` and the user-selected
|
|
93
|
+
target. Do not run `profile show/list/keys list` merely to fill in context:
|
|
94
|
+
these commands can synchronize remote keys and write back the local key
|
|
95
|
+
inventory or default key. Use them only for an explicit Profile task after
|
|
96
|
+
explaining that impact.
|
|
97
|
+
|
|
98
|
+
1. Run `arkcli helper list` and the relevant `--help` command first.
|
|
99
|
+
2. Determine the exact harness, profile type, profile name, and model or
|
|
100
|
+
Endpoint.
|
|
101
|
+
3. For a Platform profile, verify that the Endpoint is owned by the current
|
|
102
|
+
SSO sub-user, Running, and text-output capable.
|
|
103
|
+
4. For Codex, decide whether to use the default `arkcli` profile scope or the
|
|
104
|
+
explicitly requested global scope.
|
|
105
|
+
5. Before `configure` or `reset`, show the exact command and affected settings
|
|
106
|
+
files, then obtain explicit user confirmation.
|
|
107
|
+
6. Run the command, report its result, and explain any required client reload
|
|
108
|
+
or Codex profile activation.
|
|
109
|
+
|
|
110
|
+
```text
|
|
111
|
+
request
|
|
112
|
+
|
|
|
113
|
+
+-- inspect only ----------> helper list
|
|
114
|
+
|
|
|
115
|
+
+-- guided setup in TTY ---> helper
|
|
116
|
+
|
|
|
117
|
+
+-- exact target known ----> helper configure <harness>
|
|
118
|
+
|
|
|
119
|
+
+-- remove managed config -> helper reset <harness>
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
## Configuration Contract
|
|
123
|
+
|
|
124
|
+
- `platform`: `--endpoint <endpoint-id>` is required and `--model` is invalid.
|
|
125
|
+
- `coding-plan` or `coding-plan-team`: `--endpoint` is invalid. `--model` is
|
|
126
|
+
optional; concrete choices come from the plan's VirtualModelID catalog. When
|
|
127
|
+
omitted, arkcli prefers the direct ModelName matching the current route and
|
|
128
|
+
otherwise uses `ark-code-latest` or the first direct model available.
|
|
129
|
+
- `--profile` defaults to the active profile, but explicit profile selection is
|
|
130
|
+
safer for automated or non-interactive work.
|
|
131
|
+
- Plan configuration uses the API key stored with the selected profile.
|
|
132
|
+
One-off API key overrides are not a substitute for a missing profile key.
|
|
133
|
+
- ZCode writes model-specific metadata to
|
|
134
|
+
`$ZCODE_HOME/v2/config.json`. It preserves `limit.context` exactly and
|
|
135
|
+
normalizes binary-KiB `limit.output` values to the decimal token limit
|
|
136
|
+
enforced by the gateway. Plan API `ModelCapability` values win; ArkModels
|
|
137
|
+
fills only missing fields, then the built-in Plan model capability table may
|
|
138
|
+
fill fields still unknown. ZCode does not
|
|
139
|
+
hot-reload its provider registry, so fully quit the ZCode process, reopen it,
|
|
140
|
+
and start a new session after configuration.
|
|
141
|
+
- `configure` writes immediately and does not install a missing client.
|
|
142
|
+
- `reset` writes immediately and removes only arkcli-managed entries.
|
|
143
|
+
|
|
144
|
+
## Codex Scope
|
|
145
|
+
|
|
146
|
+
The default Codex scope is the named profile `arkcli`:
|
|
147
|
+
|
|
148
|
+
```bash
|
|
149
|
+
arkcli helper configure codex \
|
|
150
|
+
--profile <profile-name> \
|
|
151
|
+
--model <model-id>
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
This writes `$HOME/.codex/arkcli.config.toml`. Start Codex with:
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
codex --profile arkcli
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
Use `--codex-config-scope global` only when the user explicitly wants
|
|
161
|
+
`$HOME/.codex/config.toml` changed. A custom `--codex-profile` must contain only
|
|
162
|
+
letters, digits, underscores, or hyphens.
|
|
163
|
+
|
|
164
|
+
## Guard Checklist
|
|
165
|
+
|
|
166
|
+
- [ ] The requested profile is `platform`, `coding-plan`, or
|
|
167
|
+
`coding-plan-team`.
|
|
168
|
+
- [ ] The harness appears in `arkcli helper list`.
|
|
169
|
+
- [ ] Platform uses `--endpoint`; plan profiles use optional `--model`.
|
|
170
|
+
- [ ] The target profile, model or Endpoint, Codex scope, and settings paths
|
|
171
|
+
have been shown to the user.
|
|
172
|
+
- [ ] The user explicitly approved any `configure` or `reset` command.
|
|
173
|
+
- [ ] Never add `--dry-run` to a Helper command. The entire `arkcli helper`
|
|
174
|
+
domain rejects it as an unknown flag because Helper is a TTY/local
|
|
175
|
+
configuration workflow, not API request preview.
|
|
176
|
+
- [ ] No command, flag, profile, or fallback from another product is suggested.
|
|
177
|
+
- [ ] Completion reports the command result and any reload or activation step.
|
|
178
|
+
|
|
179
|
+
## Recovery Routing
|
|
180
|
+
|
|
181
|
+
- Not logged in or session expired: follow
|
|
182
|
+
[`arkcli-auth`](../arkcli-auth/SKILL.md), then retry.
|
|
183
|
+
- Wrong or unsupported profile: inspect and switch with
|
|
184
|
+
[`arkcli-profile`](../arkcli-profile/SKILL.md).
|
|
185
|
+
- Missing stored API key: first run `arkcli profile apikey refresh`. For a
|
|
186
|
+
personal `coding-plan`, `auth apikey` can select from the ordinary pool; for
|
|
187
|
+
`coding-plan-team`, the key must come from a Running seat and the ordinary
|
|
188
|
+
pool cannot repair it. An empty refresh preserves existing local keys.
|
|
189
|
+
- No eligible Platform Endpoint: create one with
|
|
190
|
+
`arkcli infer endpoint create`; start a stopped one with
|
|
191
|
+
`arkcli infer endpoint start <endpoint-id>`.
|
|
192
|
+
- Parent wizard used without a TTY: use the explicit
|
|
193
|
+
`arkcli helper configure <harness> ...` form.
|
|
194
|
+
|
|
195
|
+
## References
|
|
196
|
+
|
|
197
|
+
- Read [`references/arkcli-helper.md`](references/arkcli-helper.md) for exact
|
|
198
|
+
command grammar, client paths, Endpoint eligibility, errors, and recovery.
|
|
199
|
+
- Read [`references/evals.md`](references/evals.md) for trigger, anti-trigger,
|
|
200
|
+
guard, and happy-path evaluation cases.
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
# `arkcli helper` Reference
|
|
2
|
+
|
|
3
|
+
Read [`../SKILL.md`](../SKILL.md) first. This reference documents the BytePlus
|
|
4
|
+
Helper surface and its local configuration effects.
|
|
5
|
+
|
|
6
|
+
## Exact Command Grammar
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
arkcli helper
|
|
10
|
+
arkcli helper list
|
|
11
|
+
arkcli helper configure <harness> \
|
|
12
|
+
[--profile <profile-name>] \
|
|
13
|
+
[--model <model-id>] \
|
|
14
|
+
[--endpoint <endpoint-id>] \
|
|
15
|
+
[--codex-config-scope profile|global] \
|
|
16
|
+
[--codex-profile <profile-name>]
|
|
17
|
+
arkcli helper reset <harness> \
|
|
18
|
+
[--codex-config-scope profile|global] \
|
|
19
|
+
[--codex-profile <profile-name>]
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Supported harness IDs are `claude-code`, `codex`, `opencode`, `openclaw`, and
|
|
23
|
+
`hermes`. Verify them at runtime instead of assuming:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
arkcli helper list
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Read-only Inspection
|
|
30
|
+
|
|
31
|
+
The following commands do not modify client configuration:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
arkcli helper --help
|
|
35
|
+
arkcli helper configure --help
|
|
36
|
+
arkcli helper reset --help
|
|
37
|
+
arkcli helper list
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
`arkcli helper list` reads the local filesystem and does not require login. It
|
|
41
|
+
shows supported clients, whether each client is installed, and the settings
|
|
42
|
+
path that Helper knows about.
|
|
43
|
+
|
|
44
|
+
## Interactive Wizard
|
|
45
|
+
|
|
46
|
+
Run the parent command in a TTY when the user wants guided selection:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
arkcli helper
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
The wizard can:
|
|
53
|
+
|
|
54
|
+
1. ensure the user is logged in;
|
|
55
|
+
2. select a supported profile;
|
|
56
|
+
3. select an eligible Platform Endpoint or Coding Plan model;
|
|
57
|
+
4. select a supported client;
|
|
58
|
+
5. offer to install a missing client;
|
|
59
|
+
6. write the chosen configuration after confirmation.
|
|
60
|
+
|
|
61
|
+
Without a TTY, the wizard cannot prompt. Use the explicit `configure` form
|
|
62
|
+
instead.
|
|
63
|
+
|
|
64
|
+
## Non-interactive Configure
|
|
65
|
+
|
|
66
|
+
`configure` is appropriate only when the exact target is already known:
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
arkcli helper configure <harness> \
|
|
70
|
+
--profile <profile-name> \
|
|
71
|
+
--model <model-id>
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
It writes configuration immediately. It does not install a missing client.
|
|
75
|
+
Before running it:
|
|
76
|
+
|
|
77
|
+
1. inspect `arkcli helper list`;
|
|
78
|
+
2. show the exact harness, profile, model or Endpoint, scope, and settings
|
|
79
|
+
files;
|
|
80
|
+
3. obtain explicit user confirmation.
|
|
81
|
+
|
|
82
|
+
The entire Helper command domain rejects `--dry-run` as an unknown flag.
|
|
83
|
+
Helper configures local harness state and is not an API request-preview
|
|
84
|
+
surface. Do not generate either `arkcli --dry-run helper ...` or
|
|
85
|
+
`arkcli helper ... --dry-run`.
|
|
86
|
+
|
|
87
|
+
## Coding Plan Profiles
|
|
88
|
+
|
|
89
|
+
Accepted plan profile types are:
|
|
90
|
+
|
|
91
|
+
- `coding-plan`
|
|
92
|
+
- `coding-plan-team`
|
|
93
|
+
|
|
94
|
+
Example:
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
arkcli helper configure opencode \
|
|
98
|
+
--profile coding-plan_ap-southeast-1_accountwide \
|
|
99
|
+
--model <coding-model-id>
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
For a plan profile:
|
|
103
|
+
|
|
104
|
+
- `--endpoint` is invalid;
|
|
105
|
+
- `--model` is optional;
|
|
106
|
+
- concrete `--model` values come from the plan VirtualModelID catalog, not the
|
|
107
|
+
LatestModel route-target list;
|
|
108
|
+
- if `--model` is omitted, arkcli prefers the direct ModelName matching the
|
|
109
|
+
current route, then `ark-code-latest`, then the first direct model available;
|
|
110
|
+
- the selected profile must contain its stored default API key.
|
|
111
|
+
|
|
112
|
+
If a personal `coding-plan` stored key is missing, refresh its ordinary key
|
|
113
|
+
inventory and, when interactive selection is needed, use:
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
arkcli profile apikey refresh
|
|
117
|
+
arkcli auth apikey
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
For `coding-plan-team`, the key comes from
|
|
121
|
+
`GetSeatInfo.Result.ApiKey` on a Running seat. `auth apikey` only selects an
|
|
122
|
+
ordinary key and cannot repair the team profile. If the applicable remote
|
|
123
|
+
source returns no usable key, refresh fails and preserves the existing local
|
|
124
|
+
key inventory and default key.
|
|
125
|
+
|
|
126
|
+
A one-off API key override does not replace the stored profile key used by
|
|
127
|
+
Helper plan configuration.
|
|
128
|
+
|
|
129
|
+
### ZCode model limits
|
|
130
|
+
|
|
131
|
+
`helper configure zcode` writes `$ZCODE_HOME/v2/config.json` (default
|
|
132
|
+
`$HOME/.zcode/v2/config.json`). For Plan models, each limit comes first from
|
|
133
|
+
the Plan API `ModelCapability`; ArkModels fills only missing fields, followed
|
|
134
|
+
by the built-in compatibility table for fields still unknown. Helper does not
|
|
135
|
+
apply a uniform limit or dynamically infer limits from model names.
|
|
136
|
+
|
|
137
|
+
- `limit.context` preserves `context_window` exactly for ZCode context
|
|
138
|
+
accounting and compaction.
|
|
139
|
+
- `limit.output` becomes the request `max_tokens` budget. Known binary-KiB
|
|
140
|
+
approximations are normalized to the gateway decimal limit, including
|
|
141
|
+
`131072 -> 128000`, `262144 -> 256000`, and `393216 -> 384000`. Decimal and
|
|
142
|
+
unrecognized values remain unchanged.
|
|
143
|
+
- A missing field is omitted independently. If both fields are unknown, the
|
|
144
|
+
entire `limit` object is omitted. `ark-code-latest` does not inherit a
|
|
145
|
+
static model limit when authoritative target metadata is unavailable.
|
|
146
|
+
|
|
147
|
+
The interactive smart-routing picker uses only LatestModel route candidates.
|
|
148
|
+
The concrete-model picker and persisted Agent model catalog use only
|
|
149
|
+
VirtualModelID entries, plus a synthetic `ark-code-latest` entry. Load labels
|
|
150
|
+
are shown only for `Load.Status=1` with `Load.Level=1/2/3`.
|
|
151
|
+
|
|
152
|
+
For an `InvalidParameter` 400 caused by an old ZCode output limit, upgrade
|
|
153
|
+
ArkCLI, rerun the original `arkcli helper configure zcode ...` command, and
|
|
154
|
+
fully quit the ZCode process, reopen it, and start a new session. Switching
|
|
155
|
+
models or continuing an existing session does not hot-reload the provider
|
|
156
|
+
configuration. Do not convert `limit.context` to decimal or maintain a manual
|
|
157
|
+
model-name override.
|
|
158
|
+
|
|
159
|
+
## Platform Profiles
|
|
160
|
+
|
|
161
|
+
For a Platform profile, the exact form is:
|
|
162
|
+
|
|
163
|
+
```bash
|
|
164
|
+
arkcli helper configure <harness> \
|
|
165
|
+
--profile <platform-profile> \
|
|
166
|
+
--endpoint <endpoint-id>
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
Platform rules:
|
|
170
|
+
|
|
171
|
+
- `--endpoint` is required;
|
|
172
|
+
- `--model` is invalid;
|
|
173
|
+
- the current identity must be an SSO sub-user;
|
|
174
|
+
- the Endpoint must be owned by that current sub-user;
|
|
175
|
+
- the Endpoint must be Running;
|
|
176
|
+
- the Endpoint must explicitly support text output.
|
|
177
|
+
|
|
178
|
+
Text-output multimodal Endpoints are allowed. Image-only, video-only, 3D,
|
|
179
|
+
audio-only, embedding-only, and unknown-output Endpoints are excluded.
|
|
180
|
+
|
|
181
|
+
When no eligible Endpoint exists, use the dedicated Endpoint commands:
|
|
182
|
+
|
|
183
|
+
```bash
|
|
184
|
+
arkcli infer endpoint create
|
|
185
|
+
arkcli infer endpoint start <endpoint-id>
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
BytePlus Helper does not invent a console fallback URL for this case.
|
|
189
|
+
|
|
190
|
+
## Client Matrix and Settings Paths
|
|
191
|
+
|
|
192
|
+
| Client | Harness ID | Settings path written or inspected | Reload or activation |
|
|
193
|
+
|---|---|---|---|
|
|
194
|
+
| Claude Code | `claude-code` | `$HOME/.claude/settings.json` | Restart or reload Claude Code. |
|
|
195
|
+
| Codex | `codex` | `$HOME/.codex/<profile>.config.toml` by default, or `$HOME/.codex/config.toml` for global scope | Run `codex --profile <profile>` for profile scope. Restart an existing session. |
|
|
196
|
+
| OpenCode | `opencode` | `$OPENCODE_CONFIG` or `$HOME/.config/opencode/opencode.json` | Restart or reload OpenCode. |
|
|
197
|
+
| OpenClaw | `openclaw` | `$OPENCLAW_CONFIG_PATH` or `$HOME/.openclaw/openclaw.json` | Restart or reload OpenClaw. |
|
|
198
|
+
| Hermes | `hermes` | `$HOME/.hermes/config.yaml` and `$HOME/.hermes/.env` | Restart or reload Hermes. |
|
|
199
|
+
| ZCode | `zcode` | `$ZCODE_HOME/v2/config.json` or `$HOME/.zcode/v2/config.json` | Fully quit ZCode, reopen it, and start a new session; existing sessions do not hot-reload provider config. |
|
|
200
|
+
|
|
201
|
+
`arkcli helper list` reports the Codex catalog path
|
|
202
|
+
`$HOME/.codex/config.toml`. This is an inspection hint, not the default write
|
|
203
|
+
scope. `configure codex` defaults to the named profile file
|
|
204
|
+
`$HOME/.codex/arkcli.config.toml`.
|
|
205
|
+
|
|
206
|
+
Trae is not supported by the BytePlus Helper command surface because its
|
|
207
|
+
current integration cannot write model provider configuration.
|
|
208
|
+
|
|
209
|
+
## Codex Scope
|
|
210
|
+
|
|
211
|
+
Default profile scope:
|
|
212
|
+
|
|
213
|
+
```bash
|
|
214
|
+
arkcli helper configure codex \
|
|
215
|
+
--profile <profile-name> \
|
|
216
|
+
--model <model-id>
|
|
217
|
+
codex --profile arkcli
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
The default Codex profile name is `arkcli`, and the default target is:
|
|
221
|
+
|
|
222
|
+
```text
|
|
223
|
+
$HOME/.codex/arkcli.config.toml
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
Custom profile:
|
|
227
|
+
|
|
228
|
+
```bash
|
|
229
|
+
arkcli helper configure codex \
|
|
230
|
+
--profile <profile-name> \
|
|
231
|
+
--model <model-id> \
|
|
232
|
+
--codex-profile byteplus
|
|
233
|
+
codex --profile byteplus
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
Codex profile names may contain only letters, digits, underscores, and
|
|
237
|
+
hyphens.
|
|
238
|
+
|
|
239
|
+
Global scope:
|
|
240
|
+
|
|
241
|
+
```bash
|
|
242
|
+
arkcli helper configure codex \
|
|
243
|
+
--profile <profile-name> \
|
|
244
|
+
--model <model-id> \
|
|
245
|
+
--codex-config-scope global
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
Global scope writes `$HOME/.codex/config.toml`. Use it only when the user
|
|
249
|
+
explicitly asks to change configuration shared by all Codex profiles.
|
|
250
|
+
|
|
251
|
+
## Reset
|
|
252
|
+
|
|
253
|
+
```bash
|
|
254
|
+
arkcli helper reset <harness>
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
For Codex, reset the same scope and named profile used during configuration:
|
|
258
|
+
|
|
259
|
+
```bash
|
|
260
|
+
arkcli helper reset codex \
|
|
261
|
+
--codex-config-scope profile \
|
|
262
|
+
--codex-profile byteplus
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
Reset removes only arkcli-managed provider/model entries and preserves
|
|
266
|
+
unrelated user configuration. It still writes immediately, and the Helper
|
|
267
|
+
domain does not register `--dry-run`. Show the exact target and obtain
|
|
268
|
+
explicit confirmation before running it.
|
|
269
|
+
|
|
270
|
+
## Errors and Recovery
|
|
271
|
+
|
|
272
|
+
| Symptom | Meaning | Recovery |
|
|
273
|
+
|---|---|---|
|
|
274
|
+
| Parent command cannot prompt | No interactive TTY is available. | Use `arkcli helper configure <harness> ...`. |
|
|
275
|
+
| Login or session error | The selected operation needs a valid BytePlus identity. | Run `arkcli auth login`, then retry. |
|
|
276
|
+
| Unsupported profile type | Helper accepts only Platform, Coding Plan, and Coding Plan Team profiles. | Use `arkcli auth whoami --format json` for the current summary. If the user explicitly asks to switch, explain that Profile reads may synchronize remote keys and write back local key state before entering the `arkcli-profile` workflow. |
|
|
277
|
+
| Missing personal Coding Plan API key | The selected personal plan profile has no usable ordinary-pool key. | Run `arkcli profile apikey refresh`; use `arkcli auth apikey` only to interactively select an ordinary key. |
|
|
278
|
+
| Missing Coding Plan Team API key | No usable key was returned for a Running team seat. | Restore or assign the seat, then refresh. Do not use `auth apikey`; its ordinary pool is unrelated. |
|
|
279
|
+
| No user-owned Endpoint | No eligible Endpoint belongs to the current sub-user. | Run `arkcli infer endpoint create`. |
|
|
280
|
+
| Endpoint is not Running | The selected Endpoint cannot serve requests. | Run `arkcli infer endpoint start <endpoint-id>`. |
|
|
281
|
+
| Endpoint is filtered out | It is not an eligible text-output Endpoint. | Select or create a Running text-output Endpoint. |
|
|
282
|
+
| Unsupported harness | The client cannot receive model/provider configuration through BytePlus Helper. | Re-run `arkcli helper list` and choose a listed harness ID. |
|
|
283
|
+
| MCP or database add-on requested | That capability is outside the BytePlus Helper surface. | State the boundary; do not use another tenant or product as fallback. |
|
|
284
|
+
|
|
285
|
+
## Completion Receipt
|
|
286
|
+
|
|
287
|
+
After a successful write, report:
|
|
288
|
+
|
|
289
|
+
- the harness;
|
|
290
|
+
- the selected profile type and profile name;
|
|
291
|
+
- the model ID or Endpoint ID;
|
|
292
|
+
- the settings path or paths;
|
|
293
|
+
- the Codex scope and profile name, if applicable;
|
|
294
|
+
- the reload or `codex --profile <name>` activation step;
|
|
295
|
+
- whether the client was already installed or was installed by the interactive
|
|
296
|
+
wizard.
|
|
297
|
+
|
|
298
|
+
Never print full API keys, tokens, or other credentials.
|