跳到正文
Skillpedia
智能体58k · #3229

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/HKUDS/CLI-Anything/blob/main/novita/agent-harness/cli_anything/novita/skills/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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:

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 (--json flag): 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:

  1. Always use --json flag for parseable output
  2. Check return codes - 0 for success, non-zero for errors
  3. Parse stderr for error messages on failure
  4. Use absolute paths for all file operations
  5. 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能