Cli Anything Novita

by hkuds34f519533bc1No license51K starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated 2 weeks ago

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

Instructions onlySoftware Development
AI-generated overview

Documents a command-line client for the Novita AI API, offering chat, streaming, model listing, session and config commands.

What it does
This skill documents cli-anything-novita, a command-line harness for the Novita AI OpenAI-compatible API service. It covers installation via pip, chat and streaming chat commands, model listing, session history management, and configuration of the API key. It also describes human-readable and JSON output modes intended for programmatic agent use.
When to use it
Use it when you need to call Novita AI models such as DeepSeek or GLM from a terminal or script. It suits interactive chat sessions, scripted prompts, and checking API connectivity or available models.
Requirements
Python 3.10+ and the cli-anything-novita package installed via pip. A Novita API key is required, set through the config command or the NOVITA_API_KEY environment variable, and network access to the Novita API is needed. The skill contains instructions only and ships no scripts.

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:

bash
pip install cli-anything-novita

Prerequisites:

Usage

Basic Commands

bash
# Show helpcli-anything-novita --help
# Start interactive REPL modecli-anything-novita
# Chat with modelcli-anything-novita chat --prompt "What is AI?" --model deepseek/deepseek-v3.2
# Streaming chatcli-anything-novita stream --prompt "Write a poem about code"
# List available modelscli-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:

bash
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

bash
# Set API key via config file (recommended)cli-anything-novita config set api_key "sk-xxx"
# Or use environment variableexport NOVITA_API_KEY="sk-xxx"

Chat with DeepSeek

bash
# Simple chatcli-anything-novita chat --prompt "Explain quantum computing" --model deepseek/deepseek-v3.2
# Streaming chatcli-anything-novita stream --prompt "Write a Python function to calculate factorial"

Test Connectivity

bash
# Verify API key and connectivitycli-anything-novita test --model deepseek/deepseek-v3.2
# List all available modelscli-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
bash
# Human outputcli-anything-novita chat --prompt "Hello"
# JSON output for agentscli-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

Source and attribution

Source:hkuds/cli-anythinginskills/cli-anything-novitaat commit34f5195

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal