Developer integration

AISIA Python, Go and TypeScript SDKs, and the AISIA CLI

In short

AISIA ships a cross-platform CLI and a Python SDK together in one package downloadable from aisia.fr, plus Go and TypeScript SDKs and a Postman collection in the source code. None of these packages is published on PyPI or npm as of 2026-11-29. The OpenAI SDK also works as is.

This page states what actually installs today, and how. For a first call in three lines with the OpenAI SDK, the Quickstart page is enough.

Create an AISIA account

What exists and where to find it

AISIA clients and distribution channel (checked on 2026-11-29)
ClientContentsDistribution
aisia CLI (aisia-cli package)Sign-in, chat, ask, models, comparison, debate, MCP stdio relay, coding agentWheel and source archive at https://aisia.fr/downloads/, with install scripts and SHA-256 checksums
Python SDK (aisia module)AISIA client: invoke, stream, OpenAI-compatible chat, compare, debate, MCPIncluded in the same aisia-cli wheel
TypeScript SDK (@aisia/aisia)AisiaClient: invoke, chat, chatCompletions, compare, debate, runsSource code only; not published on npm
Go SDK (aisia package)Go client: Invoke, Chat, ChatCompletions, InvokeStream, compare and debateSource code only
Postman collectionAuth, public, Invoke and Models requestsRepository file, on request

The TypeScript and Go SDKs and the Postman collection are available on request from dev@aisia.fr until they are published to a public registry.

Installing the CLI and the Python SDK

Python 3.10 or later is required. The Linux and macOS script creates a virtual environment in ~/.local/share/aisia-cli and a ~/.local/bin/aisia link, which avoids pip being refused on the system Python (PEP 668). On Windows, the PowerShell script installs a virtual environment in %LOCALAPPDATA%\aisia-cli.

You can also download the wheel from https://aisia.fr/downloads/ and check its checksum against the aisia-cli-SHA256SUMS file before installing it with pip in your own virtual environment.

# Linux and macOS
curl -fsSL https://aisia.fr/downloads/install-aisia-cli.sh | sh

# Windows (PowerShell)
irm https://aisia.fr/downloads/install-aisia-cli.ps1 | iex

aisia --version
aisia login --browser

The command pip install aisia-cli does not work: the package is not on PyPI.

Authentication

The CLI signs in through the browser (aisia login --browser, with a code to compare and an explicit consent step) or with email and password, with no --password argument visible in the process list. The token is kept in the system keychain, separately for each API URL; when no keychain is available, the CLI refuses to write the token in plain text.

For a script or a CI job, pass a short-lived token through the AISIA_TOKEN variable, or an organisation ak_live_ key supplied by a secrets manager. AISIA_BASE_URL changes the target instance (https://api.aisia.fr by default).

Python example

The AISIA class sends the token as a Bearer. invoke returns the text, the provider, the model actually served and the trace identifier.

import os
from aisia import AISIA

client = AISIA(token=os.environ["AISIA_TOKEN"])
answer = client.invoke("Summarise local-first routing in one sentence.", local_only=True)
print(answer.text, answer.model, answer.trace_id)

TypeScript and Go examples

Both clients target https://api.aisia.fr by default and accept another base URL for a dedicated instance.

// TypeScript (server side)
import { AisiaClient } from "@aisia/aisia";
const client = new AisiaClient({ apiKey: process.env.AISIA_TOKEN });
const res = await client.invoke("Hello");
console.log(res.text, res.model);

// Go
client := aisia.NewClient(os.Getenv("AISIA_TOKEN"), "")
resp, err := client.Invoke(ctx, "Hello", nil)

Useful CLI commands

  • aisia chat: interactive conversation; /model auto or /model aisia switches the mode.
  • aisia ask "…": one question, or the content of a pipe; --model and --max-tokens can be combined.
  • aisia models and aisia providers: the catalogue your account can reach.
  • aisia compare "…" and aisia debate "…" --rounds 3: call /v1/compare and /v1/debate.
  • aisia mcp tools and aisia mcp stdio: MCP discovery and the relay for IDEs.
  • aisia code "…": coding agent; its file and shell tools run on your machine with your rights, and --cwd is not an operating-system sandbox.

Frequently asked questions

Is the AISIA SDK on PyPI or npm?

No, as of 2026-11-29: checking pypi.org and registry.npmjs.org returns no such package. The CLI and the Python SDK install from https://aisia.fr/downloads/; the TypeScript and Go SDKs are provided on request.

Do I need an AISIA SDK to call the API?

No. The /v1/chat/completions endpoint is compatible with the OpenAI SDK: change the base URL, the key and the model. The AISIA SDKs add direct access to invoke, compare, debate and MCP.

How do I check the downloaded package?

Compare the SHA-256 checksum of the wheel with the matching line of the aisia-cli-SHA256SUMS file published in the same folder.

Does the CLI need a GPU or a local model?

No. It calls the remote API; models run on the AISIA side, locally on AISIA infrastructure or at a configured cloud provider.

Sources

Public facts checked on the dates shown. A vendor page can change: check it before you decide.

Related pages

Create an AISIA account