Cli Anything Novita

hkuds/cli-anything/skills/cli-anything-novita

作者 hkuds34f519533bc1无许可证70K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库2周前更新

Command-line interface for Novita AI - An OpenAI-compatible AI API client for DeepSeek, GLM, and other models.

仅含说明软件开发
AI 生成的概览

介绍 Novita AI 接口的命令行客户端,提供对话、流式输出、模型列表、会话与配置命令。

功能
该技能介绍 cli-anything-novita,这是面向 Novita AI 这一兼容 OpenAI 的 API 服务的命令行工具。内容涵盖通过 pip 安装、对话与流式对话命令、模型列表、会话历史管理以及 API 密钥配置。它还说明了面向人类阅读和面向程序解析的 JSON 两种输出模式。
适用场景
当需要在终端或脚本中调用 DeepSeek、GLM 等 Novita AI 模型时使用。适用于交互式对话、脚本化提示词,以及检查 API 连通性或可用模型。
运行要求
需要 Python 3.10+,并通过 pip 安装 cli-anything-novita 包。需要 Novita API 密钥,可通过 config 命令或 NOVITA_API_KEY 环境变量设置,并需要访问 Novita API 的网络连接。该技能仅包含说明文档,不附带脚本。

AI 概览如何生成和校验

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.

CommandDescription
chatChat with the Novita API
streamStream chat completion

Session

Session management for chat history.

CommandDescription
statusShow session status
clearClear session history
historyShow command history

Config

Configuration management.

CommandDescription
setSet a configuration value
getGet a configuration value (or show all)
deleteDelete a configuration value
pathShow the config file path

Utility

CommandDescription
testTest API connectivity
modelsList 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 IDProviderDescription
deepseek/deepseek-v3.2DeepSeekDeepSeek V3.2 model (default)
zai-org/glm-5Zhipu AIGLM-5 model
minimax/minimax-m2.5MiniMaxMiniMax 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

来源与署名

来源:hkuds/cli-anything位于skills/cli-anything-novita提交34f5195

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

在 README 中添加徽章

向读者展示该技能已收录于 SourceWeft,徽章链接到本页。

“Listed on SourceWeft”徽章预览
[![Listed on SourceWeft](https://sourceweft.com/badge/skills/gh-hkuds-cli-anything-cli-anything-novita.svg)](https://sourceweft.com/skills/gh-hkuds-cli-anything-cli-anything-novita?utm_source=readme&utm_medium=badge)

举报或申请下架