HARCH|CORP
SDKs
Official SDKs for Python, TypeScript, and CLI.
Choose Your SDK
npm install @harchos/sdk@harchos/sdk|Version: 0.1.0|Coming Soonimport { HarchOS } from '@harchos/sdk';
// Initialize client with sovereign defaults
const client = await HarchOS.create({
apiKey: 'hrch_live_sk_abc123',
region: 'morocco',
sovereignty: 'strict',
carbonAware: true,
});
// Deploy a compute workload
const workload = await client.compute.createWorkload({
name: 'training-run-001',
gpu: 'H100',
count: 8,
hub: 'dakhla',
schedule: 'carbon-optimal',
});
// Stream real-time metrics via WebSocket
for await (const event of workload.streamMetrics()) {
console.log(`GPU Util: ${event.gpuUtil}% | Power: ${event.powerW}W`);
}CLI
Powerful CLI for managing resources, deployment, and monitoring from the command line.
macOS
brew install harchos/tap/harchosLinux
curl -fsSL https://get.harchos.ai | shWindows
winget install HarchOS.HarchOSharchos auth loginharchos auth login — Authenticate with your HarchOS accountharchos workloads listharchos compute allocate — Allocate GPU resources for workloadsharchos workloads deploy --gpu H100 --count 8harchos compute status — Check the status of compute resourcesharchos workloads scale <id> --count 16harchos data ingest — Ingest data into sovereign storageharchos models deploy <model> --hub dakhlaharchos deploy apply — Apply infrastructure configurationharchos hubs statusharchos monitor dashboard — Open the monitoring dashboardharchos energy reportharchos carbon report — Generate carbon intensity reportharchos logs tail <workload-id>harchos config set — Set configuration parametersComparison
| Language | Python | TypeScript | Go | Rust |
|---|---|---|---|---|
| Language | ||||
| Type Safety | ||||
| Async Support | — | |||
| Streaming | ||||
| Carbon API | ✓ | |||
| CLI Integration | ||||
| IDE Support | — | |||
| Unit Testing | — | |||
| Production Ready | ✓ | ✓ | ✓ | ✓ |
| Production Ready | ✓ | ✓ | ✓ | ✓ |