Skip to main content

CLI for Compute3 - GPU orchestration and LLM API

Project description

C3 CLI

Command-line interface for Compute3 - GPU orchestration and LLM API.

Installation

pip install c3-cli

This also installs the c3-sdk as a dependency.

Setup

Configure your API key:

c3 configure

Or set via environment:

export C3_API_KEY=your_key

Or create ~/.c3/config:

C3_API_KEY=your_key

Get your API key at compute3.ai/dashboard

Usage

Billing

c3 billing balance
c3 billing transactions
c3 billing balance -o json

LLM

# List models
c3 llm models

# Quick chat
c3 llm chat deepseek-v3.1 "Explain quantum computing"

# Interactive chat
c3 llm chat deepseek-v3.1

# With system prompt
c3 llm chat deepseek-v3.1 "Write a haiku" -s "You are a poet"

Jobs

# List jobs
c3 jobs list
c3 jobs list -s running

# Create a job
c3 jobs create nvidia/cuda:12.0 -g l40s -c "python train.py"

# Create and follow logs with TUI
c3 jobs create nvidia/cuda:12.0 -g h100 -n 8 -c "torchrun train.py" -f

# Get job details
c3 jobs get <job_id>

# Stream logs
c3 jobs logs <job_id> -f

# Watch GPU metrics
c3 jobs metrics <job_id> -w

# Cancel
c3 jobs cancel <job_id>

# Extend runtime
c3 jobs extend <job_id> 7200

User

c3 user

Output Formats

c3 jobs list -o json
c3 billing balance -o table

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

c3_cli-0.3.0.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

c3_cli-0.3.0-py3-none-any.whl (24.8 kB view details)

Uploaded Python 3

File details

Details for the file c3_cli-0.3.0.tar.gz.

File metadata

  • Download URL: c3_cli-0.3.0.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for c3_cli-0.3.0.tar.gz
Algorithm Hash digest
SHA256 1d0cbb431eeccfbcfb616c44d384c6811d89af33bef47d49771d2a20aa886719
MD5 75969f1256615b305cb1f62805b76007
BLAKE2b-256 e44a99ff53dc60f7277681f84d5c82f752ef96122cf1c463b75648a5852e3374

See more details on using hashes here.

File details

Details for the file c3_cli-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: c3_cli-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 24.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for c3_cli-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bd82512a8c1e1c80dc5cb5775e4d1a8f99dc6ebdd2d8f3e41c798534bc2f9678
MD5 f48da837b86a099b0f6521e1dd4c9df1
BLAKE2b-256 6863780e089bdf7d99b97cf676b71503cc5416db70c8d52e613c441a3b1106fe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page