cli-anything-novita
它能做什么
这个技能让 AI 智能体使用 Novita AI。这项服务通过同一个接口运行多种 AI 模型。适合想尝试常用模型之外其他模型的人。
适用场景
- ✓当你想通过 Novita 向 DeepSeek 或 GLM 模型提问的时候。
- ✓当你想查看 Novita 提供哪些 AI 模型的时候。
- ✓当你想让回复随生成逐字出现的时候。
技能链接
https://github.com/HKUDS/CLI-Anything/blob/main/novita/agent-harness/cli_anything/novita/skills/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我通过 Novita 问一下 DeepSeek 模型,用简单的话解释这条错误信息。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体使用你的 API 密钥连接 Novita,并把提示发送给你选择的模型。它可以一次返回完整答案,也可以分段流式返回。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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 |
Chat with the Novita API |
stream |
Stream chat completion |
Session
Session management for chat history.
| Command | Description |
|---|---|
status |
Show session status |
clear |
Clear session history |
history |
Show command history |
Config
Configuration management.
| Command | Description |
|---|---|
set |
Set a configuration value |
get |
Get a configuration value (or show all) |
delete |
Delete a configuration value |
path |
Show the config file path |
Utility
| Command | Description |
|---|---|
test |
Test API connectivity |
models |
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 |
DeepSeek | DeepSeek V3.2 model (default) |
zai-org/glm-5 |
Zhipu AI | GLM-5 model |
minimax/minimax-m2.5 |
MiniMax | MiniMax M2.5 model |
Output Formats
All commands support dual output modes:
- Human-readable (default): Tables, colors, formatted text
- Machine-readable (
--jsonflag): Structured JSON for agent consumption
# 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
--jsonflag for parseable output - 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
常见问题
我需要 Novita 账户吗?
需要。连接之前,你需要从 novita.ai 获取一个 API 密钥。
我可以选择使用哪个模型吗?
可以。你可以在每次请求中指定模型,也可以用命令列出可用的模型。
它会记住之前的对话吗?
该技能提供会话命令,可以查看状态、查看历史记录和清空历史。
详情
作者的原始描述
Command-line interface for Novita AI - An OpenAI-compatible AI API client for DeepSeek, GLM, and other models.
repo: HKUDS/CLI-Anything
热度
- GitHub 星标
- 58k
- 排名
- #3229
- 许可证
- Apache-2.0
- 更新时间
- 2026/9/21
评论
- …
同一仓库的更多技能
cli-anything-3mf
58k帮你的智能体检查和修复 3D 打印文件,包括查找圆孔、调整孔径、修复网格,以及比较两个文件。
cli-anything-qgis
58k帮你的智能体在终端中打开、编辑和导出 QGIS 地图项目,包括图层、要素、打印布局和处理工具。
cli-anything-adguardhome
58k帮你的智能体管理 AdGuard Home,这是一款全网络广告拦截器,可管理过滤规则、DNS 重写、客户端和查询日志。
cli-anything-anygen
58k帮你的智能体借助 AnyGen 服务,根据文字提示生成幻灯片、文档、网站和图表。