@coreviz/cli
v1.5.3
Published
CoreViz CLI tool
Readme
CoreViz is a Vision AI platform for teams and individuals working with thousands of visual assets.
@coreviz/cli
An AI-powered CLI for working with photos. Semantically search, edit, tag and generate metadata for thousands of photos right from the command line.
Installation
npm install -g @coreviz/cliUsage
# Run directly with npx
npx @coreviz/cli [command]
# Or if installed globally
coreviz [command]Commands
AI Features
Describe an image:
npx @coreviz/cli describe path/to/image.jpg
Edit an image with a text prompt (🍌 Nano Banan + Flux Kontext in the CLI!):
npx @coreviz/cli edit path/to/image.jpg --prompt "make it cyberpunk style"
Generate tags or classify an image:
npx @coreviz/cli tag path/to/image.jpg "objects in the image"Classify an image using specific choices:
npx @coreviz/cli tag path/to/image.jpg --choices "receipt,invoice,document" --singleRun tagging locally (offline capable):
npx @coreviz/cli tag path/to/image.jpg "prompt" --mode localSearch local images using natural language:
npx @coreviz/cli search "a person wearing a red t-shirt"
This will index the images in your current directory (creating a .index.db file) and return the top matches for your query.
You can also use the cloud API for embeddings:
npx @coreviz/cli search "query" --mode apiScripting
All commands support a --quiet flag to suppress UI output and return only raw results.
# Returns only the file path of the edited image
npx @coreviz/cli edit image.jpg "prompt" --quietAuthentication
Login to CoreViz using device authorization:
npx @coreviz/cli loginLogout:
npx @coreviz/cli logoutCheck login status:
npx @coreviz/cli whoamiMCP Server (Claude Code Integration)
@coreviz/cli includes a built-in MCP server that exposes your CoreViz visual library as tools for Claude Code and other MCP-compatible AI agents — turning CoreViz into a visual memory for your AI workflows.
Setup
Login (if you haven't already):
npx @coreviz/cli loginConnect to your MCP client:
Claude Code — Install the plugin (recommended):
claude plugin marketplace add coreviz/cli
claude plugin install coreviz@corevizOr configure MCP manually in ~/.claude/settings.json:
{
"mcpServers": {
"coreviz": {
"command": "npx",
"args": ["coreviz-mcp"]
}
}
}Claude Desktop — Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"coreviz": {
"command": "npx",
"args": ["coreviz-mcp"]
}
}
}- In Claude Code, run
/mcpto confirm the server is connected.
Available MCP Tools
| Tool | Description |
|------|-------------|
| list_collections | List all collections in your workspace |
| create_collection | Create a new collection |
| browse_media | Navigate folders and list media items |
| search_media | Semantic search across all your media |
| get_media | Get full details, tags, and detected objects for an item |
| get_tags | Aggregate all tags across a collection |
| find_similar | Find visually similar images by object ID |
| analyze_image | Run AI vision analysis on an image URL |
| create_folder | Create a new folder |
| move_item | Move a file or folder |
| rename_item | Rename a file or folder |
| add_tag | Add a tag to a media item |
| remove_tag | Remove a tag from a media item |
| upload_media | Upload a local photo or video file to a collection |
Local development override
{
"mcpServers": {
"coreviz": {
"command": "node",
"args": ["/path/to/@coreviz/cli/bin/mcp.js"],
"env": {
"COREVIZ_API_URL": "http://localhost:3000"
}
}
}
}You can also authenticate via environment variable instead of coreviz login:
COREVIZ_API_KEY=your_key npx coreviz-mcpDevelopment
Install dependencies:
cd cli npm installRun local CLI:
node bin/cli.js --helpRun local MCP server:
node bin/mcp.js

