Open-source CLI for AI agents

LinkModel CLI for image and video AI agents.

Turn terminal-capable AI agents into multimodal creators with one safe prompt and one API key, then run a complete generation workflow from request to downloaded artifact.

Automatic setup
  1. Step 01

    Install LinkModel CLI

    Install the official package globally with npm.

    npm install -g linkmodel-cli
  2. Step 02

    Verify the environment

    Confirm the CLI and credentials are ready before generation.

    lkm doctor --json
Supported agents
  • Codex
  • Claude Code
  • Cursor
Read install guide
After setup

Connect once. Start creating.

Add your API key, then ask your agent for an image or video. The CLI handles the workflow from request to downloaded artifact.

01

Connect an API key safely.

The CLI stores your key locally with restricted permissions and masks it in human-readable and JSON output.

lkm auth login --api-key YOUR_API_KEY
02

Ask for an image or video.

Describe the result in natural language. Your agent runs the command, waits for completion, and downloads the artifact.

lkm image "a cinematic product shot"
Real workflow

One lifecycle, end to end.

Create synchronously, leave a long task running asynchronously, or resume it later. The same commands work for people, scripts, and coding agents.

linkmodel-cli
Agent-native by design

Predictable enough to automate.

The CLI exposes explicit state instead of hiding behavior, so agents can reason about every step.

Stable JSON output

Use --json for machine-readable responses that are easy to inspect, pipe, and validate.

Meaningful exit codes

Success, validation, authentication, timeout, and task failures remain distinguishable.

Model-aware options

Selected-model help exposes the exact supported flags, defaults, ranges, and enums.

Resumable tasks

Start with --no-wait, keep the task ID, then inspect or wait for completion later.

Artifact delivery

Completed images and videos download automatically with extensions derived from their content type.

Safe defaults for autonomous work.

The installation prompt gives every agent clear boundaries before it touches credentials or paid generation.

  • Never print, log, or commit a complete API key.
  • Never run paid generation without explicit user authorization.
  • Validate installation with lkm doctor --json before generating.

Open source and ready today.

LinkModel CLI is MIT licensed, published on npm, and developed in the official LinkModel GitHub organization.

Common questions

Common questions about LinkModel CLI.