kortex-cli is a command-line interface for launching and managing AI agents with custom configurations. It provides a unified way to start different agents with specific settings including skills, MCP (Model Context Protocol) server connections, and LLM integrations.
- Claude Code - Anthropic's official CLI for Claude
- Goose - AI agent for development tasks
- Cursor - AI-powered code editor agent
- Configure agents with custom skills and capabilities
- Connect to MCP servers for extended functionality
- Integrate with various LLM providers
- Consistent interface across different agent types
An AI assistant that can perform tasks autonomously. In kortex-cli, agents are the different AI tools (Claude Code, Goose, Cursor) that can be launched and configured.
The underlying AI model that powers the agents. Examples include Claude (by Anthropic), GPT (by OpenAI), and other language models.
A standardized protocol for connecting AI agents to external data sources and tools. MCP servers provide agents with additional capabilities like database access, API integrations, or file system operations.
Pre-configured capabilities or specialized functions that can be enabled for an agent. Skills extend what an agent can do, such as code review, testing, or specific domain knowledge.
A registered directory containing your project source code and its configuration. Each workspace is tracked by kortex-cli with a unique ID and name for easy management.
Registers a new workspace with kortex-cli, making it available for agent launch and configuration.
kortex-cli init [sources-directory] [flags]sources-directory- Path to the directory containing your project source files (optional, defaults to current directory.)
--workspace-configuration <path>- Directory for workspace configuration files (default:<sources-directory>/.kortex)--name, -n <name>- Human-readable name for the workspace (default: generated from sources directory)--verbose, -v- Show detailed output including all workspace information--storage <path>- Storage directory for kortex-cli data (default:$HOME/.kortex-cli)
Register the current directory:
kortex-cli initOutput: a1b2c3d4e5f6... (workspace ID)
Register a specific directory:
kortex-cli init /path/to/myprojectRegister with a custom name:
kortex-cli init /path/to/myproject --name "my-awesome-project"Register with custom configuration location:
kortex-cli init /path/to/myproject --workspace-configuration /path/to/configView detailed output:
kortex-cli init --verboseOutput:
Registered workspace:
ID: a1b2c3d4e5f6...
Name: myproject
Sources directory: /absolute/path/to/myproject
Configuration directory: /absolute/path/to/myproject/.kortex
- If
--nameis not provided, the name is automatically generated from the last component of the sources directory path - If a workspace with the same name already exists, kortex-cli automatically appends an increment (
-2,-3, etc.) to ensure uniqueness
Examples:
# First workspace in /home/user/project
kortex-cli init /home/user/project
# Name: "project"
# Second workspace with the same directory name
kortex-cli init /home/user/another-location/project --name "project"
# Name: "project-2"
# Third workspace with the same name
kortex-cli init /tmp/project --name "project"
# Name: "project-3"- All directory paths are converted to absolute paths for consistency
- The workspace ID is a unique identifier generated automatically
- Workspaces can be listed using the
workspace listcommand - The default configuration directory (
.kortex) is created inside the sources directory unless specified otherwise
Lists all workspaces that have been registered with kortex-cli. Also available as the shorter alias list.
kortex-cli workspace list [flags]
kortex-cli list [flags]--output, -o <format>- Output format (supported:json)--storage <path>- Storage directory for kortex-cli data (default:$HOME/.kortex-cli)
List all workspaces (human-readable format):
kortex-cli workspace listOutput:
ID: a1b2c3d4e5f6...
Name: myproject
Sources: /absolute/path/to/myproject
Configuration: /absolute/path/to/myproject/.kortex
ID: f6e5d4c3b2a1...
Name: another-project
Sources: /absolute/path/to/another-project
Configuration: /absolute/path/to/another-project/.kortex
Use the short alias:
kortex-cli listList workspaces in JSON format:
kortex-cli workspace list --output jsonOutput:
{
"items": [
{
"id": "a1b2c3d4e5f6...",
"name": "myproject",
"paths": {
"source": "/absolute/path/to/myproject",
"configuration": "/absolute/path/to/myproject/.kortex"
}
},
{
"id": "f6e5d4c3b2a1...",
"name": "another-project",
"paths": {
"source": "/absolute/path/to/another-project",
"configuration": "/absolute/path/to/another-project/.kortex"
}
}
]
}List with short flag:
kortex-cli list -o json- When no workspaces are registered, the command displays "No workspaces registered"
- The JSON output format is useful for scripting and automation
- All paths are displayed as absolute paths for consistency