Skip to main content

Quickstart to CLI & Agent Integration

Install Zilliz CLI and the agent integration that matches your local workflow. Zilliz supports agent integration through the Zilliz Plugin for Claude Code and OpenAI Codex, the Zilliz Skill for skill-compatible agents, and the Zilliz CLI for direct terminal or automation workflows.

After setup, you can ask your agent to operate Zilliz Cloud directly, or use the CLI in scripts and terminals.

Installation

Before you start, ensure that you have:

Install Zilliz Plugin for OpenAI Codex

Use the Zilliz Plugin if you want to operate Zilliz Cloud directly from OpenAI Codex.

1

Add the marketplace.

plaintext
codex plugin marketplace add zilliztech/zilliz-plugin
2

Open /plugins in Codex and install zilliz from the marketplace.

You can also install directly with codex-marketplace as follows.

plaintext
npx codex-marketplace add zilliztech/zilliz-plugin --plugins

Install Zilliz Plugin for Claude Code

Use the Zilliz Claude Code Plugin if you want to operate Zilliz Cloud directly from Claude Code.

1

Run Claude Code

bash
> claude
2

Open the plugin marketplace

bash
/plugin
3

Find and install the Zilliz Plugin

Go to the Discover tab and search for zilliz. Select the zilliz plugin to install it.

TqS3b4z7Ho9xcXxHJaIc7HTZn1e

4

Run the quickstart wizard. The wizard guides you through CLI installation, authentication, cluster connection, and first operations.

plaintext
/zilliz:quickstart

Install Zilliz Skill for common agent frameworks

If your coding agent, such as Codex, Gemini CLI, Cursor, or another skill-compatible agent, supports agent skills, install Zilliz Skill as follows:

bash
npx skills add zilliztech/zilliz-skill

This command will prompt you to choose the target agent framework and installation scope.

Install Zilliz CLI

The Zilliz CLI is the base command-line tool used by the Plugin and Skill.

1

Install Zilliz CLI.

bash
curl -fsSL https://zilliz.com/cli/install.sh | bash

Verify installation:

bash
zilliz --version
2

Authenticate.

Authenticate with your Zilliz Cloud account:

bash
zilliz login

This opens a browser for authentication. After login, your credentials are stored locally.

When to use CLI, Plugin, or Skill

Use these tools when you need to:

  • Develop and test manually from your local environment.

  • Write automated operations scripts for repeatable workflows.

  • Enable your agent to call Vector Database or Vector Lakebase services automatically.

Tool comparison

The Claude Code Plugin, Zilliz Skill, and Zilliz CLI should cover the same main capabilities. Choose based on workflow, not feature scope.

OpenAI Codex pluginClaude Code PluginZilliz SkillZilliz CLI
Best forCodex natural-language workflowsClaude Code natural-language workflowsSkill-compatible coding agentsTerminal use, scripts, and CI
SetupGuided setup through the quickstart skill/zilliz:quickstartnpx skills add zilliztech/zilliz-skillInstall script + zilliz login
Natural languageYesYesYesNo
AutomationAgent-assistedAgent-assistedAgent-assistedScript-first
Structured outputAgent-readable responsesAgent-readable responsesAgent-readable responses--output json for scripts

Supported capabilities

The following table explains the capabilities of the CLI, Plugin and Skill.

AreaWhat You Can Do
ClustersCreate, delete, suspend, resume, modify
CollectionsCreate with custom schema, load, release, rename, drop
VectorsSearch, query, insert, upsert, delete, hybrid search
IndexesCreate (AUTOINDEX), list, describe, drop
DatabasesCreate, list, describe, drop
Users & RolesRBAC setup, privilege management
BackupsCreate, restore, export, policy management
ImportBulk data import from S3/GCS/Azure Blob Storage
PartitionsCreate, load, release, manage
MonitoringCluster status, collection stats, load states
ProjectsProject and region management
BillingUsage queries, invoices

What you can ask your agent to do

After installation, describe the task directly. Your agent should translate the request into the corresponding Zilliz CLI commands. The following examples show how a natural-language request maps to the CLI commands your agent is expected to run.

  • List my clusters and show which one is currently active.

    Expected CLI commands:

    bash
    zilliz cluster list
    zilliz context current
  • Create a collection for product embeddings with a 768-dimensional vector field.

    Expected CLI command:

    bash
    zilliz collection create --name product_embeddings --dimension 768
  • Import data from S3 into my collection and check the import job status.

    Expected CLI command:

    bash
    zilliz import start --cluster-id <cluster-id> --collection product_embeddings --body '{"files": [["s3://bucket/path/data.json"]]}'
  • Create a backup for my production cluster.

    Expected CLI command:

    bash
    zilliz backup create --cluster-id <cluster-id>
  • Search my collection with a metadata filter and return the top 10 results.

    Expected CLI command:

    bash
    zilliz vector search --collection product_embeddings --data '[[0.1, 0.2, 0.3]]' --filter 'age > 20' --limit 10 --output-fields '["name", "age"]'
  • Create a role with read-only access to the analytics collection.

    Expected CLI commands:

    bash
    zilliz role create --role analytics_readonly
    zilliz role grant-privilege --role analytics_readonly --object-type Collection --object-name analytics --privilege Search
    zilliz role grant-privilege --role analytics_readonly --object-type Collection --object-name analytics --privilege Query