npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@evolinkai/cli

v0.17.0

Published

Generate images, video and audio with EvoLink, with browser login and quoted submissions.

Readme

EvoLink CLI

Generate images, video, music and speech directly through the EvoLink platform API starting with version 0.8.0. Earlier versions use the hosted MCP transport. The CLI provides browser login, model discovery, quotes, task recovery, reference uploads and original-result downloads.

The package calls the EvoLink platform API directly using the assistant's terminal. Requires Node.js 22+.

The pricing-rules estimation changes described below are an unreleased candidate.

The search-fee fix is also an unreleased candidate. Search defaults to off for Seedream 5.0 Lite, Gemini 3 Pro Image, Gemini 3.1 Flash Image, Nano Banana 2.1, and Seedance 2.0/2.0 Fast/2.5 text-to-video. Keep web and image search off unless the user explicitly requests or approves it. If the agent thinks search is needed, explain the extra per-search rates and unknown total, then wait for consent before enabling it. A task approval without search does not authorize adding search; changed search settings need a fresh estimate and approval. When enabled, an unknown search count produces a partial subtotal assuming zero searches, with the current per-search rate for each enabled search type. One task may perform no searches or multiple searches; expected counts are assumptions, not execution limits. Other unknown usage, including text/thinking tokens, remains excluded from a partial subtotal.

Estimates evaluate the published full pricing rules with exact UC arithmetic, including resolution, tiers, minimum charges and rounding. Signed in, they are at your account's own rates when the platform offers them (pricing_scope: account, read from GET /v1/pricing-rules/{model}); otherwise at public default prices, which exclude personal discounts (pricing_scope: public_default). models pricing, models search and models show follow the same rule; models pricing also works without login and then reads the public default rules. A failed refresh cannot authorize a new submission. Final settlement caps still require GroAPI/Worker enforcement; responses report final_budget_enforced: false.

Status and installation

Install @evolinkai/cli, sign in with the evolink command, install the bundled skill and verify the connection:

npm install -g @evolinkai/cli
evolink auth login
evolink skills install
evolink balance --json

The same setup prompt can be used in coding assistants with terminal access:

帮我设置 EvoLink,让我可以直接在这里生成图片、视频和音频。

  1. 安装 CLI:运行 npm install -g @evolinkai/cli,需要 Node.js 22 或更新版本。
  2. 完成登录:运行 evolink auth login,由我在浏览器里登录 EvoLink 并点同意;没有打开浏览器时,把登录链接发给我。
  3. 安装配套技能:运行 evolink skills install,确认当前助手能发现 evolink-cli。
  4. 验证连接:运行 evolink balance --json,成功后告诉我可以开始了。

媒体生成默认使用 EvoLink,每次付费任务先报价,等我明确确认后再生成。

For an installation preflight in a POSIX shell, treat an absent command as an expected first-time setup state:

if command -v evolink >/dev/null 2>&1; then
  evolink --version
else
  printf '%s\n' 'EvoLink CLI is not installed or not on PATH.'
fi

Check Node.js and npm separately when installation is needed. In PowerShell, use Get-Command evolink -ErrorAction SilentlyContinue inside an if. If installation already succeeded, check PATH and the active Node/npm installation. Do not suppress actual version, runtime or installation failures with || true. auth status --json returning ok: true and authenticated: false means sign-in is needed; an error should be resolved before login. A saved login reports access_token_expires_at; the short-lived access token renews automatically before each command, so an elapsed time there is not an expired login. Verify a saved login with evolink balance --json, and sign in again only on authenticated: false or a login_required/login_expired error.

The skill is bundled with the package. By default it installs into ~/.agents/skills/evolink-cli (Codex, Cursor, Gemini CLI, OpenCode and Copilot CLI), ~/.claude/skills/evolink-cli (Claude Code), ~/.openclaw/skills/evolink-cli (OpenClaw) and ~/.hermes/skills/evolink-cli (Hermes). Select one with skills install --agent NAME; run --help for the supported names. Verify discovery in the assistant rather than treating a written skill file as proof of integration. Browser-only chat assistants should keep using the hosted MCP connection. See Claude Code skill locations and Cursor skill locations.

After upgrading the npm package, run evolink skills install again to refresh the installed skill copies, then verify that the assistant discovers the updated skill. Open a new conversation only if discovery does not refresh. Fix reusable guidance in skills/evolink-cli/SKILL.md in this package; editing only a local installed copy will not distribute the fix.

setup, doctor and auth login compare the installed version with the latest npm release and report update; other commands print a short notice at most once a day (see Update notices). A bilingual local callback page after browser approval, instead of a return to evolink.ai, means the installed CLI is older than 0.9.1: upgrade, then run evolink skills install.

Setup and skill updates

Starting with CLI 0.6.0, use the selected assistant's name:

evolink setup --agent codex --json
evolink skills status --agent codex --json
evolink doctor --agent codex --json

setup checks Node.js, writable state and credential storage, synchronizes the selected skill, reuses an existing login only after checking the real account connection, and verifies model discovery. When needed it waits for browser approval. Repeating setup reuses completed steps; connection errors do not automatically trigger a new login. Checks submit no paid media tasks. The default agent is all; use --agent to install only for the assistant you are using. Commands sharing a state directory serialize setup; skill writes also serialize across state directories in the same home.

CLI checks cannot prove that the assistant has loaded a skill. A successful result leaves assistant_discovery: not_checked; ask the assistant to confirm discovery in the current conversation. Reopen only when the assistant cannot refresh. A failed stage returns its error and a setup recovery command without erasing completed installations.

auth login and setup accept --timeout SECONDS (30–900, default 180). Keep the login process running until it reports completion. If it times out or is interrupted, start a new login and open the new link. The local callback page acknowledges receipt and returns you to the assistant for verification; it does not claim the account connection was verified. Repeated callbacks are refused and the browser page clears the authorization query from its visible URL.

The installer copies SKILL.md and its bundled references, records their hashes and CLI version, and skips identical installations. skills status distinguishes missing, current, outdated, legacy, unmanaged, modified and conflicting installations. The unmodified published 0.5.0 or 0.5.1 skill migrates automatically. Local changes are preserved by default. Only after choosing to replace those changes, run:

evolink skills install --agent codex --replace-modified --json

Replacement backs up the previous skill directory under ~/.evolink-media/skill-backups/, outside assistant discovery folders. Untracked user assets are preserved, and an installation failure rolls back completed directory swaps. Unowned skills, damaged manifests and symbolic-link destinations require resolving the conflict first. After upgrading the CLI, run skills status and skills install to synchronize its bundle; npm upgrades do not automatically update assistant skill folders.

For an idempotent installation prompt, check Node.js 22+ and evolink --version before installing; reuse a suitable installed CLI. In a released version supporting setup, use it with the current assistant's name. With older versions, retain the four separate setup steps above, reuse a working login, and explicitly verify balance, model discovery and assistant skill discovery. Installation authorization does not authorize a paid test generation.

Update notices

Starting with CLI 0.10.0, setup, doctor and auth login ask the npm registry for the latest @evolinkai/cli release every time and report update: status (available, current, unknown or disabled), update_available, current_version, latest_version and the update command. An available update is guidance only; it never fails setup or doctor, and login and setup print one extra progress line.

Other commands, except the offline auth status, reuse a registry answer from the last 24 hours, or ask again. When a newer stable release exists, they print one line on stderr after the command's own output:

EvoLink CLI 0.10.1 is available (installed 0.10.0). Update with npm install -g @evolinkai/cli@latest, then run evolink skills install.

The same release is announced at most once a day; stdout and --json envelopes are unchanged, and the notice never changes the exit code. A check sends one anonymous GET for the package's dist-tags to registry.npmjs.org with the CLI User-Agent, waits at most 3 seconds, and stores its result in the state directory (update-check/npm.json). It uses the same fetch as the CLI's other requests, so proxy settings such as Node's NODE_USE_ENV_PROXY=1 with HTTPS_PROXY apply alike; a request still open at the deadline does not keep the process running. Help output, invalid commands and loopback test resources never trigger it.

Set EVOLINK_CLI_UPDATE_CHECK=0 to turn these checks off; NO_UPDATE_NOTIFIER with any value (the update-notifier convention) and a CI variable other than 0 or false also turn them off. To check by hand, compare evolink --version with npm view @evolinkai/cli version, or watch the repository's GitHub Releases (cli-v* tags).

Without --agent, evolink doctor also inspects installed skill copies for all supported assistants. skills.status is not_installed, current, outdated, needs_attention or unavailable. Outdated copies add guidance to run evolink skills install; local changes and conflicts are reported without being replaced. These findings do not change ok; doctor --agent NAME keeps checking the selected skill as a required step.

Quoted generation

evolink models search --type image --query seedream --json
evolink models show MODEL --json
evolink estimate --model MODEL --input-file input.json --json
# After the user approves the returned quote:
evolink generate image --quote QUOTE_ID --confirm --json
evolink tasks wait TASK_ID --json
evolink download TASK_ID --output /absolute/result.png --json

# Several inputs of one model: one quote, one approval, one submission.
evolink estimate --model MODEL --inputs-file inputs.jsonl --json
evolink generate image --quote QUOTE_ID --confirm --json
evolink tasks batch --ids TASK_A,TASK_B --json

# Only when the user explicitly said not to estimate or confirm:
evolink generate image --model MODEL --input-file input.json --skip-estimate --json

For video/audio, choose the corresponding generation command and a model's documented input. estimate never submits a task. Quotes are current for at most 24 hours and never outlive the returned pricing approval. They bind to the login and exact input. Before submitting, generate estimates again: the same input at the approved price or lower submits, also under later pricing rules; a higher price (price_changed), a changed input (quote_input_changed) or an expired quote (quote_expired) needs a new estimate and approval. For a partial estimate only the part it prices is compared. --confirm conveys the user's approval; the CLI cannot verify a conversation by itself.

Show the estimated cost and ask the user to confirm the task. The CLI does not turn that estimate into a spending cap. If the user explicitly specifies a budget, compare the estimate with it; pause if it exceeds that budget or cannot be fully estimated. The legacy --max-cost-usd option remains compatible for this estimate comparison and does not limit the final charge. --media-seconds is a pricing hint, never a model parameter. Actual-usage billing requires explaining the relevant uncertainty; a missing price is refused. GPT Image token models (gpt-image-1.5, gpt-image-2, gpt-image-2.5-*, gpt-image-2.6-*) return a token_billed reference price, what EvoLink reserves at submission for the exact input; the task settles at the tokens it actually uses, and a --max-cost-usd budget must cover 1.5 times the reference price. Gemini Omni Flash video models (gemini-omni-flash-*, gemini-omni-1.1-flash-*, gemini-omni-1.2-flash-*) get a reference price the same way; give an input or reference video's length with --media-seconds (for several reference videos, the longest one's). EvoLink reads that video's resolution at submission, so the reference counts it at 4k, and the estimate also gives the price at each input resolution (reference_usage.input_resolution_prices). qwen-audio-3.1-tts-flash gets a reference price the same way, from the length and kinds of characters of its text.

A failed or blocked estimate is not a quote. Catalog starting prices must not replace a task quote. Fix the reported problem and quote again while retaining the user's cap; do not ask for generation approval or submit using an invented total. Quote errors report submission_allowed: false and preserve the supplied budget.

--skip-estimate is for a user who explicitly said not to estimate or confirm, for one task, a batch or the rest of a conversation. generate --model MODEL --input-file FILE --skip-estimate (or --inputs-file) submits without a quote: the price is not checked, the task is charged by actual usage, and the result says so (estimate_skipped, estimate_skip_reason). Invalid input and an explicit --max-cost-usd are still refused; the command saves a record with its own request ID, so tasks resume --quote QUOTE_ID recovers an uncertain submission. When an estimate fails and the user has not opted out, ask once whether to generate anyway; on yes use --skip-estimate.

--inputs-file takes a JSON array, or JSONL with one input object per line, of 1-50 inputs for one model. estimate --inputs-file returns each input's price, the total and one quote for the batch; generate --quote QUOTE_ID --confirm submits every input at once (up to 10 at a time) and returns each input's task ID or error without waiting (--wait is for one task). Collect the results with tasks batch --ids. If some inputs were not submitted or their outcome is unknown, tasks resume --quote QUOTE_ID finishes the batch with the same request ID within 23 hours of its first submission: accepted inputs return their original tasks without a new charge. Never resubmit those inputs with a new estimate or generate command. tasks resume follows the same rule as generate: after a price rise or the quote's expiry nothing is sent; check tasks batch --ids and tasks list for what went through, then estimate only the inputs that did not and submit them as a new batch after approval.

For the five Seedance 2.5 generation models, draft: true with omitted quality uses 480p for both pricing and submission. Estimates expose effective_input and defaults_applied; show these applied defaults before approval. Draft-to-video conversion and other model IDs retain their own inputs. The new checks match the resolved model and endpoint, including when catalog documentation is borrowed through an alias.

For seedance-2.5-video-edit, keep input.duration: -1; this selects editing rather than supplying a negative output length. Expected output seconds belong in pricing_parameters.duration_seconds, alongside any required input-video usage. They do not change the generation setting or guarantee final usage.

Seedance 2.5 text-to-video enables search with model_params.web_search: true. Missing pricing_parameters.search_count produces a partial video subtotal and an unknown search charge; it is not zero searches or a complete total. Explicit counts, including zero, are expected usage rather than a limit. Keep the search assumption visible and retain any user budget; partial estimates cannot check that budget. A corrected old quote needs a fresh estimate and approval. Recover submitted or uncertain requests with their original IDs rather than generating again.

Tasks and files

evolink tasks get TASK_ID --json
evolink tasks list --since 30m --type video --json
evolink tasks list --status processing --json
evolink tasks list --status completed --type video --limit 50 --json
evolink tasks resume --quote QUOTE_ID --json
evolink upload /absolute/reference.mp4 --json
evolink uploads get UPLOAD_ID --json
evolink download TASK_ID --output /absolute/result.mp4 --index 1 --json

Uploads save a stable request ID before sending bytes. On connection loss, keep that ID and run evolink uploads get UPLOAD_ID --json. With a compatible file service this reads an account-owned receipt retained for up to 72 hours; it never repeats the upload. Older services return an unknown outcome rather than a false failure. Logout revokes future use of the scoped upload grant; an upload already accepted before logout may still finish. Recovery retains the original login binding and never copies OAuth credentials into MCP settings.

Passport can advertise evolink_cli_mcp_supported: true. New browser grants then use the public official evolink-cli identity with PKCE, mcp offline_access, and the configured MCP resource. Existing dynamic-client sessions refresh with their original client ID. Earlier Passport deployments continue to use dynamic registration. This does not change shared CLI/MCP account-Key limits or permissions.

Task-list filters are case-sensitive:

| Option | Allowed values | When omitted | | --- | --- | --- | | --status | processing, completed, failed, cancelled | Recent tasks across all states | | --type | image, video, audio | All media types | | --since | ISO 8601, Unix seconds, or a relative time such as 30m, 2h, 1d | No creation-time filter | | --limit | Integer from 1 to 50 | 20 |

processing includes queued tasks. Do not use pending, queued, canceled or all as a status filter. A task response can report pending; response statuses and accepted list filters are separate contracts. cancelled lets you read that state; this CLI does not provide a cancellation command. Run evolink tasks list --help for details, or add --json for its machine-readable help envelope.

An invalid status is rejected locally before login or a platform request. The invalid_status error includes param, the supplied value, allowed_values, queued_filter, request_sent: false and a recovery next_step. Correct the free query rather than creating another paid task. A successful query with an empty list, or a task whose status is failed, is not a failed CLI invocation.

The CLI persists the request ID before paid submission. Recovery reuses that ID; it never silently submits with a new one. For an uncertain submission, omit --status so completed or failed tasks remain visible. Lists are account-wide, newest first and limited to the returned recent batch; --since filters that batch rather than searching all history. An empty list does not prove no task was created. Keep the original IDs and use tasks get or tasks resume as appropriate. tasks resume replays the original request ID only within 23 hours of its first submission, inside the 24 hours EvoLink keeps it; after that it refuses (recovery_window_passed): inspect recent tasks before considering another paid submission. Ctrl-C stops local waiting, not generation. Task links expire after 7 days.

Uploads stream up to 95 MiB directly to the file service using a short-lived upload token issued by the platform. The OAuth access token is never sent to the file service. uploads get reads a saved local receipt. A lost response without a saved receipt reports outcome_unknown and result_verified: false; it does not retry or claim that a result was recovered. The file service has no lookup by client request ID. Legacy proxy slots can be recovered with CLI 0.6.0. Downloads use a product User-Agent, validate redirect destinations, check content types and common media file headers, stream at most 1 GiB per result, and refuse to overwrite existing files. HTTP 200 HTML/error documents are rejected with invalid_download_content, with no final file left behind. Header checks do not fully decode codecs. These commands transfer originals and do not alter the generated content or guarantee host inline previews. Missing files/directories, denied permissions and exhausted disk space have separate error codes; fix the local problem and retry the same task's download.

Discovery, task pages and all-result delivery

Read structured public configuration prices without logging in:

evolink models pricing --model gemini-2.5-pro --view full --json
evolink models pricing --modality text --lifecycle active --json

This uses GET /v1/catalog/pricing-rules (or the single-model route), preserves decimal-string amounts (including fractional UC rates), pricing versions, minimum charges and tier expressions, and revalidates bounded caches with ETag. Full media rules preserve signed parameter bounds, allowed values, lookup keys and multiplier tables, and nested expressions. meta.price_selection=route_priority identifies the web-aligned route-priority reference; absent metadata or configured_minimum means legacy lowest configuration prices. Public defaults can differ from account discounts and failover settlement; unavailable models still have reference prices. Coverage follows the returned published policies and supported legacy text adapters; empty results mean no matching public rules were returned. This command does not create a quote, calculate a bill or authorize a spending cap. Continue using estimate with the exact media input and keep its uncertainty and budget guards.

Every command supports local --help --json, with option enums, bounds and defaults. New discovery tools and page/model/until filters come from the bundled shared platform module. The CLI checks bundled operation capabilities and reports capability_unavailable before calling an unsupported tool or sending an unsupported filter.

evolink models recommend --type video --references image --query seedance --json
evolink models schema MODEL --json
evolink docs search --query voice_prompt --json
evolink models search --type video --page 2 --json
evolink tasks list --model MODEL --page 2 --limit 50 --json
evolink tasks batch --ids TASK_A,TASK_B --json
evolink download TASK_ID --all --output-dir /absolute/results --json
evolink download TASK_ID --all --output-dir /absolute/results --resume --json

Recommendations report documented reference support and editorial selection reasons; they are not a quality, popularity or release-date ranking. Read the actual model inputs and prepare a quote before generating. Documentation search returns bundled official model-reference excerpts and a source commit, not a live full-site crawl. Schemas preserve nested OpenAPI definitions. response_schema describes submission rather than necessarily the final task result; runtime constraints remain authoritative.

Task pagination returns page, page_size and next_page. since/until filter only the selected page; total is before those time filters. Batch queries deduplicate known IDs and return missing IDs. Public voice/persona/result metadata is preserved in outputs without private upstream metadata.

All-result downloads accept up to 50 results. --template '{task_id}-{index}.{ext}' also supports {kind}; templates must produce distinct portable filenames without directories. Local receipts record sizes and SHA-256 hashes. --resume verifies saved files and downloads the remainder with the same task/directory/template. Changed files and unrelated existing files are preserved. Partial delivery returns successful files and per-result errors, exits nonzero, and leaves generation marked completed. Recover downloads using the original task; never regenerate to fix delivery.

Workflows

A workflow is a set of step-by-step rules that EvoLink sends to a logged-in assistant, for example ad-rebuild: rebuild a reference ad of up to 30 seconds with your own product and creator. The package holds only the commands and a short entry page in the skill (references/ad-rebuild.md); the rules arrive after login.

evolink workflow rules ad-rebuild --json                  # overview, a run_id and the section list (free)
evolink workflow rules ad-rebuild --section plan --run RUN_ID --json
evolink workflow estimate ad-rebuild --run RUN_ID --seconds 15 --keyframes 6 --quality 720p --json   # one estimated total (free)
evolink video analyze FILE_URL --run RUN_ID --step reference_analysis --purpose breakdown --json     # paid, by tokens
evolink video analysis ANALYSIS_ID --json                 # collect a read that was still running (free)
  • workflow estimate returns one total for the whole run from the published prices. The assistant shows that total once and asks once; the total depends mostly on the video's length and resolution.
  • video analyze reads an EvoLink file link or result link (MP4 or MOV, within the workflow's length limit). It is charged by tokens to the logged-in account and is part of the workflow's estimated total. Repeating exactly the same command within 24 hours returns the first result without a new charge; a failed read exits non-zero with the service's error code and next step, and a read that was cut off still prints what was read.
  • workflow_unavailable means the service does not offer workflows for this login yet.

Usage and spending limits

evolink usage --since 30d --max-pages 5 --json
evolink usage --since 2026-10-01T00:00:00Z --until 2026-10-09T00:00:00Z --model MODEL --json

This account-wide summary scans at most 1–20 pages of 50 retained tasks (default 5), groups by task creation time, and sums valid reported costs of completed tasks. It includes coverage, scan bounds, missing costs and detected pagination changes. Missing costs are not zero. Complete coverage means currently retained matching tasks were scanned; historical completeness and a consistent snapshot remain unknown. It excludes reservations, payments, refunds and non-task charges and is not a bill or invoice. USD is approximate at 68 credits per dollar.

Final task/workflow budgets require authoritative server-side reservation and settlement. This version retains an estimate-based submission guard; task summaries or local waiting cannot enforce a final spending cap. No cancellation command or tool is provided.

Authentication and state

Login discovers Passport directly and uses a native public OAuth client, PKCE, a loopback callback and mcp offline_access on the existing Passport service. After the approval, the loopback callback hands the browser on to the EvoLink MCP page (?login=cli), where the site picks the language; the authorization code is never part of that URL. Dynamically registered clients currently appear as unverified on the consent page. Device-code login is not included in this release.

Tokens are stored only in the OS credential store. Linux requires a running Secret Service keyring; the CLI does not silently fall back to an in-memory kernel store or plaintext credential files. A one-command OAuth access token can be passed through stdin with --token-stdin, never as a command argument. auth logout revokes this session and preserves the account's shared MCP key.

Run evolink doctor --json to check Node.js, writable local state, credential storage, saved login, balance connectivity and model discovery. Add --agent NAME to check installed skills. It reports failed and skipped checks together and exits nonzero until the connection is verified. On Linux, run login and later commands in the same unlocked Secret Service/D-Bus session. A keyring package alone does not start or unlock that session.

On an SSH host, the OAuth loopback callback belongs to the host running the CLI. If you open the link on your own computer, forward its callback port: run evolink auth login --no-browser remotely, read the 127.0.0.1:PORT in the printed link's redirect_uri, then use a second local terminal with ssh -N -L PORT:127.0.0.1:PORT USER@HOST before opening that link. Keep both commands alive until approval finishes (the login waits up to three minutes). Otherwise run the CLI locally. --no-browser prints a link but does not forward it. Device-code login is not provided.

Quotes, request IDs and non-secret public client metadata retain the existing ~/.evolink-media location so an upgrade can reuse saved requests and the OS-stored login. EVOLINK_CLI_HOME selects an isolated state directory; the original EVOLINK_MEDIA_HOME remains supported. The credential-service identity and skill ownership marker also remain stable across the command rename. Browser links are printed on stderr. Tokens and PKCE verifiers are not printed. Never include credentials in bug reports.

All machine-readable commands accept --json. Stdout contains one envelope with schema_version: 1 and ok; progress goes to stderr. Errors return ok: false, an error code and a nonzero exit code (130 for interruption).

Development and migration

Run installation and tests on the test cloud host, not the development Mac. In this package directory: npm ci, npm test, npm run test:mutations, and npm pack. Tests use loopback fixtures and never spend production credits. Real paid acceptance requires a separate quote and user approval.

The repository is Evolink-AI/evolink-cli. Development started in deeplearning-goethe/evolink-cli, which moved here on 2026-11-14 and is now archived: its history and release tags were carried over, while its earlier pull requests and GitHub releases stay in the archived repository. Package and command names and the service identity did not change; the npm package's repository link points here from its next release.

Platform and MCP paths

The CLI uses REST for everything except the workflow commands. workflow rules, workflow estimate, video analyze and video analysis send one tools/call request each to the hosted MCP server named by --server, because a workflow's rules and the prompts behind a video read are kept on that service and never ship with this package. Browser chat clients continue to use remote MCP. Both paths currently share Passport resource permissions and the internal EvoLink MCP (OAuth) account limit. The authorization resource remains https://mcp.evolink.ai/mcp; it is distinct from the REST API destination. The gateway MCP emergency switch still applies to both paths. Total and daily limits, model permissions and pause apply to both clients; logging out revokes only the current OAuth session. Separate keys are optional when a project needs independent limits. Backend parameterized media Quote and its OAuth route must be enabled for account estimates.

The CLI vendors the reviewed shared platform module from the MCP repository with a SHA-256 source/artifact manifest in src/platform/source.json. Refresh it on the test host using scripts/sync-platform-client.mjs; never edit generated files. The MCP SDK is a development dependency for compatibility fixtures only. No extra package or MCP plugin installation is needed by CLI users.

--server retains the OAuth resource identity for existing saved logins and quotes. --api-url and --files-url accept the official endpoints; loopback overrides require a loopback test resource. No credential-bearing redirects or automatic MCP fallback are allowed. Quotes with a recorded API origin cannot be submitted to a different origin.

Host permission compatibility

CLI command validation does not grant the assistant permission to run a command. Respect host denials and keep the original budget, model and request IDs. Gemini CLI 0.63.0 can reject shell arguments derived from tool output in a noninteractive session, even with a command-prefix allow rule. Use an interactive session to review permissions; for a separately selected native MCP workflow, configure Gemini's Streamable HTTP connection and authorize it with /mcp auth evolink. CLI OAuth credentials are not exported or copied into MCP settings. Do not automatically switch routes after a denial or disable host safety checks.

{
  "mcpServers": {
    "evolink": { "httpUrl": "https://mcp.evolink.ai/mcp" }
  }
}

Run gemini mcp list from the intended project directory. If EvoLink is Disabled because the folder is untrusted, review that folder using Gemini's normal trust dialog or /permissions; do not disable folder-trust checks globally. Connected confirms discovery, so also verify a real read-only model or balance call.

Headless mode exposes only tools permitted by its policy. In Gemini CLI 0.63.0, a scoped MCP rule uses mcpName, not serverName; allow only the tools needed for the chosen workflow. For example, a quote-only policy can allow search_models, get_model, estimate_cost, check_balance and get_task on evolink. Generation still requires the user's quote approval and the host's normal tool permission. Do not silently add a generation allow rule or treat a successful process exit without EvoLink tool calls as acceptance.

See Gemini trusted folders and Gemini MCP configuration and OAuth. A cloud terminal test does not prove desktop inline previews, browser handoff on another machine or permission defaults in every host.

Generation errors preserve the saved quote and request ID when acceptance or charging is uncertain. charged: no alone does not authorize a new request: submission_state must also establish not_submitted or rejected. Recover uncertain submissions with the original quote, and query a known task. A new generation needs a fresh estimate and user approval.

Task queries verify the requested ID and the public states pending, processing, completed, failed, cancelled. Invalid bodies, mismatched IDs and unknown states return task_response_invalid, task_identity_mismatch or task_status_unknown, with the original task ID and status_check: unverified. Retry the free query; this does not establish task failure, a zero charge or a refund. tasks wait --timeout is one limit for every read, retry and pause: at the limit it exits with wait_timeout, the task ID, the last verified status and its read_at (or status_check: unverified when the latest status could not be read), and the task keeps running. tasks get reads once without waiting; that read can still take up to 15 s. Accepted submissions retain their ID even if a follow-up query fails; resume queries that ID without creating another task. Optional fields vary by model: missing progress or costs are not zero, and completed voice/persona tasks may return reusable identifiers without download links. Invalid optional fields are omitted with response_warnings.

tasks batch retains independently verified tasks and marks partial, missing and issues when other rows are absent, invalid or duplicated. tasks list keeps the verified base page if detail enrichment fails, marking details_missing and affected rows with details_available: false and a details_reason (read_failed, invalid or not_returned); details_status summarizes the read. Retry details_retry_task_ids with tasks batch --ids (free) and check not_returned rows with tasks get. last_page names the last page; an empty page past it is not an empty account. An unavailable detail is not proof that the task never existed. Follow next_page and query the original missing IDs; do not interpret partial results as a complete usage total or regenerate to repair a read.

Customer-facing notices, link labels and related guidance default to English unless the user explicitly requests another language. For uncertain task status, missing results, execution failure or incomplete lists, use the returned dashboard_url and English dashboard_guidance: Open EvoLink Dashboard. Sign in with the same EvoLink account and keep the original task ID; this link does not establish task completion, charges or refunds.

A failed task is not charged: the credits reserved at submission are returned automatically, as billing_note says. Its error.code and error.message are what the API reports (the message on one line, without secrets, service addresses or links other than EvoLink docs); channel_* codes, which concern EvoLink's own upstream accounts, are reported as service_unavailable. A cancelled task does not establish a refund. tasks get can successfully return a failed task, while tasks wait exits nonzero with task_failed, a message naming the error code, and the same task and billing details. billing.refund_status reports account-balance evidence: unknown, pending, failed, completed, or not_required. A completed refund includes recorded credits and time; key-limit restoration remains unknown. Without billing fields the status stays unknown: a failed task still carries the billing_note, but no completed refund is claimed.

Rules estimates and refresh

evolink estimate reads the published full pricing policy for the canonical model. The local quote_id stores input binding, pricing fingerprint, integer UC subtotal and expiry; there is no backend estimate_id. The local quote shares the core's 24-hour approval window and never outlives the returned approval. Before first submission, the CLI reads the rules again: the same input at the approved price or lower submits, also under a later policy; a higher price, a changed input or usage, or an expired quote needs a new estimate and approval. Neither backend Quote nor new OAuth quote access is required. Existing login, shared MCP key, quota and permissions remain.

Use evolink estimate --refresh-quote ID for an unsubmitted approval. It preserves input and an explicit user budget, creates a new local approval and requires user confirmation again. The new quote replaces the old one, which can no longer be submitted (quote_superseded names the current quote), and keeps its request ID; if a submission or another refresh finishes first, no new quote is saved. Unknown recovery keeps the original input and request ID; a failed replay cannot prove the first submission was free. Known tasks remain readable after expiry; check the original task before preparing another request.

Supply required measured or expected billing usage with --pricing-parameters '{"input_seconds":5.77}'. Default --pricing-source pricing_rules and old account/public_reference aliases use the same published full rules. Partial estimates name missing usage and cannot check a budget. GPT Image token models, Gemini Omni Flash video models and qwen-audio-3.1-tts-flash need no token counts; --pricing-parameters token counts are not used for them. Estimates exclude personal discounts and do not reserve quota or guarantee the final charge.