Configuring a SiberAI SDK client: three values in the right layer

Configuring a SiberAI SDK client: three values in the right layer

This article was prepared by the SiberAI team.

SiberAI’s configuration docs reduce SDK setup to three values: the API base path on siberai.net (/api/siberai/v1), the model id siber-v3, and your customer key. Put those in the right layer—environment or secret store—not in the repository or a browser bundle.

SDK versus Agent

An OpenAI-compatible SDK needs the three values above. The standalone Agent manages the account session in its interface; its launcher prepares the customer account, model id and API URL for the native engine. Production Agent use does not require editing internal engine configuration files. Mixing the two mental models—pasting a key into launcher argv, or hand-editing engine configs—creates support noise the docs already warn against.

Separate environments

Create separate customer keys for development and production. Instead of moving a key to another workspace, create a new key in the right workspace and revoke the old one. That matches authentication and profiles guidance: keys are bound to user and workspace.

Compatibility checklist before go-live

  1. Client can set a custom base URL / path and model id (see integrations).
  2. Key only on the server; never in mobile/browser bundles.
  3. Image generation, embeddings and generation webhooks are not assumed.
  4. Validate Chat Completions or Responses fields you actually send.
  5. Smoke-test model listing with authentication before load tests.

How-to: wire an SDK without leaking secrets

  • Store the key as SIBERAI_API_KEY (or your vault’s equivalent).
  • Store the base as host + /api/siberai/v1 in config—not hard-coded in source commits.
  • Force model="siber-v3" in code so a library default cannot silently change.
  • Fail CI if a sai_ide_ literal appears in the tree.

References: config, environment, integrations, authentication.

FAQ

Q: Do I edit Agent engine JSON for production?
A: Docs say production use does not require editing internal engine configuration files.

Q: Can one key serve staging and prod?
A: Prefer separate keys; create in the right workspace and revoke the old one when moving.

Q: Are three values enough for any SDK feature?
A: They configure the client; unsupported endpoints (images, embeddings, webhooks) stay out of scope.

Q: Where does the Agent get its URL?
A: The launcher prepares account, model id and API URL for the native engine after UI pairing.

Comparison: “works like OpenAI” demos

Integrations pages show a familiar client shape, then immediately list scope limits. A demo that only changes base URL/model/key is honest; a demo that also calls embeddings is not. Train sales engineers on that comparison so POCs match changelog and API reference boundaries.

Keep marketing copy aligned: configure three values, call siber-v3, keep secrets server-side. Everything else is your application’s job—context assembly, tool loops, queues—documented elsewhere on the site.

Layer diagram for architects

Draw three boxes: Secret store → SDK process → SiberAI HTTP API. Draw a separate box for Agent UI → native engine. Do not draw an arrow that copies the same key into both without rotation policy. Config and environment pages exist to keep that diagram boring—and safe.

Sources

Disclosure: Independent overview of SiberAI (siberai.net) public documentation; not an official SiberAI publication.

Yorumlar

Bu blogdaki popüler yayınlar

SiberAI’de Chat Completions mi, Responses mi?

Связь с нативным движком SiberAI: приватный IPC, не публичный API расширений

KVKK perspektifinden yapay zeka API'lerine veri gönderirken dikkat edilecekler