Quickstarts
Get started in minutes with our rapid quickstart guides.
5-Minute
Tutorial
Get up and running with HarchOS in minutes.
Select a sovereign hub based on latency and compliance requirements.
npm install @harchos/sdk
Set GPU type, memory, and storage for your workload.
import { HarchOS } from '@harchos/sdk';
const client = await HarchOS.create({
apiKey: process.env.HARCHOS_API_KEY,
region: 'morocco',
sovereignty: 'strict',
carbonAware: true,
});Push your code and let HarchOS handle scheduling and scaling.
const model = await client.models.register({
name: 'my-llama-model',
framework: 'pytorch',
artifact: './model.pt',
sovereignty: 'strict',
});
console.log(`Model registered: ${model.id}`);Track metrics, carbon intensity, and costs in real-time.
const endpoint = await client.models.deploy(model.id, {
gpu: 'H100',
count: 2,
hub: 'auto', // Let THINK choose the optimal hub
schedule: 'carbon-optimal',
autoScale: {
min: 1,
max: 8,
targetLatency: '100ms',
},
});
console.log(`Endpoint live at: ${endpoint.url}`);Auto-scale based on demand with carbon-aware optimization.
const result = await client.inference.run(endpoint.id, {
input: 'Explain the HarchOS SENSE-THINK-ACT architecture',
maxTokens: 512,
temperature: 0.7,
});
console.log(result.output);
console.log(`Latency: ${result.latencyMs}ms`);
console.log(`Energy: ${result.energyWh}Wh (source: ${result.energySource})`);Get up and running with HarchOS in minutes.
Next Steps