Install the SDK
Install @magiios/sdk from the private GitHub Packages registry.
The TypeScript SDK ships as @magiios/sdk from a private GitHub Packages
registry (Sello has no public v1, so the SDK is not on public npm). Installing it
takes a one-time .npmrc pointing the @magiios scope at GitHub Packages, plus
a GitHub token scoped to read:packages.
Configure the registry
Add the scope and auth to your project's .npmrc. Never commit the token — read
it from the environment:
# .npmrc
@magiios:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}Install
NODE_AUTH_TOKEN=<your read:packages token> npm install @magiios/sdkAsk your Sello contact to issue you a token scoped to read:packages on the SDK
repository — GitHub Packages has no anonymous private install.
Verify
import { SelloClient } from '@magiios/sdk';
const sello = new SelloClient({
apiKey: process.env.SELLO_API_KEY,
baseUrl: 'https://api.sello.cr',
apiVersion: '2026-06-15',
});
const page = await sello.documents.list();
console.log(page.data.length, 'documents');The published npm scope is @magiios (the GitHub owner), not @sello —
GitHub Packages maps the npm scope to the GitHub account of the same name. Why
the private-registry channel exists is recorded in ADR 0002 (SDK publishing).
Other languages (Python, Go, Java, C#, PHP) are available too — see SDKs.