CLI-Anything cli-anything-novita
install
source · Clone the upstream repo
git clone https://github.com/HKUDS/CLI-Anything
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/HKUDS/CLI-Anything "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/cli-anything-novita" ~/.claude/skills/hkuds-cli-anything-cli-anything-novita && rm -rf "$T"
manifest:
skills/cli-anything-novita/SKILL.mdsource content
cli-anything-novita
A CLI harness for Novita AI - an OpenAI-compatible API service for AI models like DeepSeek, GLM, and others.
Installation
This CLI is installed as part of the cli-anything-novita package:
pip install cli-anything-novita
Prerequisites:
- Python 3.10+
- Novita API key from novita.ai
Usage
Basic Commands
# Show help cli-anything-novita --help # Start interactive REPL mode cli-anything-novita # Chat with model cli-anything-novita chat --prompt "What is AI?" --model deepseek/deepseek-v3.2 # Streaming chat cli-anything-novita stream --prompt "Write a poem about code" # List available models cli-anything-novita models # JSON output (for agent consumption) cli-anything-novita --json chat --prompt "Hello"
REPL Mode
When invoked without a subcommand, the CLI enters an interactive REPL session:
cli-anything-novita # Enter commands interactively with tab-completion and history
Command Groups
Chat
Chat with AI models through the Novita API.
| Command | Description |
|---|---|
| Chat with the Novita API |
| Stream chat completion |
Session
Session management for chat history.
| Command | Description |
|---|---|
| Show session status |
| Clear session history |
| Show command history |
Config
Configuration management.
| Command | Description |
|---|---|
| Set a configuration value |
| Get a configuration value (or show all) |
| Delete a configuration value |
| Show the config file path |
Utility
| Command | Description |
|---|---|
| Test API connectivity |
| List available models |
Examples
Configure API Key
# Set API key via config file (recommended) cli-anything-novita config set api_key "sk-xxx" # Or use environment variable export NOVITA_API_KEY="sk-xxx"
Chat with DeepSeek
# Simple chat cli-anything-novita chat --prompt "Explain quantum computing" --model deepseek/deepseek-v3.2 # Streaming chat cli-anything-novita stream --prompt "Write a Python function to calculate factorial"
Test Connectivity
# Verify API key and connectivity cli-anything-novita test --model deepseek/deepseek-v3.2 # List all available models cli-anything-novita models
Default Models
The Novita API supports multiple model providers:
| Model ID | Provider | Description |
|---|---|---|
| DeepSeek | DeepSeek V3.2 model (default) |
| Zhipu AI | GLM-5 model |
| MiniMax | MiniMax M2.5 model |
Output Formats
All commands support dual output modes:
- Human-readable (default): Tables, colors, formatted text
- Machine-readable (
flag): Structured JSON for agent consumption--json
# Human output cli-anything-novita chat --prompt "Hello" # JSON output for agents cli-anything-novita --json chat --prompt "Hello"
For AI Agents
When using this CLI programmatically:
- Always use
flag for parseable output--json - Check return codes - 0 for success, non-zero for errors
- Parse stderr for error messages on failure
- Use absolute paths for all file operations
- Verify outputs exist after export operations
More Information
- Full documentation: See README.md in the package
- Test coverage: See TEST.md in the package
- Methodology: See HARNESS.md in the cli-anything-plugin
Version
1.0.0