mcpField
C
cli-anything-novita

cli-anything-novita

github.com/hkudsAgent workflows57.6k470 installsUpdated 5w ago
Repository

About cli-anything-novita

cli-anything-novita is a command-line interface for chatting with models through Novita AI. It supports interactive and scripted use, with session controls and JSON output for agent consumption.

Key features

  1. 01Chat and stream completions
  2. 02Interactive REPL with history
  3. 03Manage chat sessions
  4. 04Configure API credentials
  5. 05List models and test connectivity
  6. 06JSON output for agents

Use cases

  1. 01Run one-off model queries from a terminal
  2. 02Stream a model response
  3. 03Use structured output in agent workflows

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/hkuds/cli-anything --skill cli-anything-novita

After installing, type/cli-anything-novitain Claude Code to confirm it loaded.

Details

From the project README

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

Comments

Markdown supported