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.4.0.tar.gz (21.1 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.4.0-py3-none-any.whl (26.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: c3_cli-0.4.0.tar.gz
  • Upload date:
  • Size: 21.1 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.4.0.tar.gz
Algorithm Hash digest
SHA256 27f624bc4d0f0bea1a13f16c6b87196d3e821b93cc2d5448be84401e820b5fae
MD5 f3304fdff58f29a0945f0c633660a5d2
BLAKE2b-256 a9a310966642964112b992c88248c43aac2dbf3d7b98765addd58415bd594fd1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: c3_cli-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 26.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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7f4b0a6585f011cf7d3509fcd546cfbc7f7ee30f5e2d8d149da8690116b63a27
MD5 64913532b35e6896762c91371152b3c2
BLAKE2b-256 fc57f9587aeb3409a63bf9a9c9d6e547edc2e64734fe2b6c8cc56dd5ba01afbb

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