Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Evincere/klisk/llms.txt
Use this file to discover all available pages before exploring further.
Usage
Description
Run your agent directly from the command line. Supports both single messages and interactive conversations, with the ability to attach images and PDF files.Arguments
Message to send to the agent. Omit for interactive mode.
Options
Project name or path. Use
-p as shorthand.Start an interactive conversation. Use
-i as shorthand.File Attachments
Attach files using the@ prefix:
Supported File Types
Images (up to 20MB each):- JPEG (
.jpg,.jpeg) - PNG (
.png) - GIF (
.gif) - WebP (
.webp)
- PDF (
.pdf)
File Format
Files are automatically:- Base64-encoded
- Formatted for the agent’s model provider (OpenAI or LiteLLM)
- Included in the request with appropriate MIME types
Examples
Single Message
Interactive Mode
Specific Project
With File Attachments
Interactive with Custom Project
Interactive Mode
In interactive mode:- Type messages at the
You:prompt - Conversation context is preserved across messages
- Attach files with
@filenamein any message - Type
exitorquitto end the session - Press
Ctrl+CorCtrl+Dto exit
Interactive Example
Context Preservation
Interactive mode maintains conversation history:- Each message includes the full context
- The agent remembers previous exchanges
- Uses OpenAI’s response ID system for continuity
Tracing
By default, runs are traced for debugging. Tracing is automatically disabled when:- Files are attached (to avoid payload-too-large errors)
- You can view traces in the Studio or OpenAI dashboard
Model Compatibility
The command automatically detects whether your agent uses:- OpenAI models - Uses Responses API format
- LiteLLM providers - Uses Chat Completions format
Error Handling
No agents found:Agent Selection
If your project has multiple agents,klisk run uses the first agent discovered (alphabetically by name). To run a specific agent, structure your project to have only one agent or use the Studio for multi-agent projects.
Related Commands
klisk dev- Interactive Studio for testingklisk serve- Production serverklisk check- Validate project setup