zepctl CLI Reference
zepctl is a command-line interface for administering Zep projects. It provides comprehensive access to Zep’s context engineering platform, enabling you to manage users, threads, knowledge graphs, and data operations from the terminal.
Installation
Homebrew (macOS/Linux)
Binary Download
Download the appropriate binary for your platform from the releases page.
macOS users: If you see “zepctl cannot be opened because the developer cannot be verified”, run:
Quick Start
Authentication
Environment Variables
Configuration File
Location: ~/.zepctl/config.yaml
API keys are stored in the system keychain (macOS Keychain, Windows Credential Manager, or Linux Secret Service) rather than in the config file. For CI/CD environments without keychain access, use the ZEP_API_KEY environment variable.
Global Flags
Commands
config
Manage zepctl configuration including profiles and defaults.
project
Get project information.
user
Manage users in your Zep project.
Deleting a user removes all associated threads, graph data, and knowledge. This supports RTBF (Right to Be Forgotten) compliance.
thread
Manage conversation threads.
List Flags
Message Format
When adding messages via --file or --stdin, use this JSON format:
graph
Manage knowledge graphs.
Add Data Flags
Add Fact Flags
Search Flags
Property Filter Syntax
Property filters allow filtering by node/edge attributes:
Supported operators: =, ==, <>, !=, >, <, >=, <=, IS NULL, IS NOT NULL
Values are automatically parsed as boolean (true/false), integer, float, or string.
Date Filter Syntax
Date filters allow filtering by temporal fields:
Supported fields: created_at, valid_at, invalid_at, expired_at
Batch Episode Format
node
Manage graph nodes.
edge
Manage graph edges (facts/relationships).
episode
Manage graph episodes (source data).
task
Monitor async operations (batch imports, cloning, etc.).
ontology
Manage graph schema definitions.
Ontology File Format
summary-instructions
Manage user summary instructions.
Examples
Export All Users
Bulk User Creation
Migrate User Data
Monitor Batch Import
Delete User (RTBF Compliance)
Search with Advanced Filters
Output Formats
All commands support multiple output formats via the --output flag:
Shell Completions
Enable tab completion for commands, flags, and arguments.
Bash
Requires the bash-completion package.
Zsh
Fish
PowerShell
Start a new shell session after installing completions for changes to take effect.