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.2.0.tar.gz (17.5 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.2.0-py3-none-any.whl (22.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: c3_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 17.5 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.2.0.tar.gz
Algorithm Hash digest
SHA256 05bb09441d4acf94754712b4d071811f1cc824c7b99ab7cd0f08f4316351ccb4
MD5 ead87f9349e765bdf9e5a07e57b9f3da
BLAKE2b-256 50d0c1027bee7c397981f2d6a95eeef74d41881dc46521e6d13b332d8db7af00

See more details on using hashes here.

File details

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

File metadata

  • Download URL: c3_cli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 22.3 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 664b9ebed12cbeb2e199849cb31d490df9b85912f1c9534388451710d3b2f10c
MD5 a7f52503f1183a9fa3c12ae63ccd575c
BLAKE2b-256 4398132c182f75e84dde541f92fbce6a1582770a0c3e8d2555663fd5bc041b42

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