ctx7 CLI is a command-line tool for managing AI coding skills and documentation context. It allows you to search, install, and generate skills for AI coding agents like Claude Code, Cursor, OpenCode, and Antigravity.
Installation
Quick Start
Main Commands
skills
Search, install, list, and manage AI coding skills
setup
Configure Context7 MCP for your AI coding agent
auth
Manage authentication with Context7
Global Options
--base-url <url>
Specify a custom base URL for the Context7 API.
--version
Display the current version of ctx7.
--help
Show help information for any command.
Command Aliases
For faster workflow, ctx7 provides short aliases:| Full Command | Alias |
|---|---|
ctx7 skills install | ctx7 si |
ctx7 skills search | ctx7 ss |
ctx7 skills suggest | ctx7 ssg |
ctx7 skills install | ctx7 skills i or ctx7 skills add |
ctx7 skills search | ctx7 skills s |
ctx7 skills list | ctx7 skills ls |
ctx7 skills remove | ctx7 skills rm or ctx7 skills delete |
ctx7 skills generate | ctx7 skills gen or ctx7 skills g |
Examples
Search and Install
Target Specific Agents
List and Manage
Skill Directories
Skills are installed to different directories based on the target agent:| Agent | Project Path | Global Path |
|---|---|---|
| Universal | .agents/skills/ | ~/.config/agents/skills/ |
| Claude Code | .claude/skills/ | ~/.config/claude/skills/ |
| Cursor | .cursor/skills/ | ~/.cursor/skills/ |
| Antigravity | .agent/skills/ | ~/.config/agent/skills/ |
| OpenCode | .config/opencode/skills/ | ~/.config/opencode/skills/ |
The Universal directory (
.agents/skills/) is designed to work across multiple AI coding agents.Output Examples
Successful Installation
Search Results
Error Handling
Permission Errors
If you encounter permission errors:Network Errors
Check your internet connection and try again. You can also specify a custom base URL:Resources
- Browse skills at context7.com
- View documentation at docs.context7.com
- Report issues on GitHub