Launching SiberAI Agent from the CLI: workspace, state directory and -CheckOnly

Launching SiberAI Agent from the CLI: workspace, state directory and -CheckOnly

This article was prepared by the SiberAI team.

The standalone Agent is usually started from a launcher script, not by pasting a customer key into a shell flag. SiberAI’s CLI documentation is clear: connect the account in the interface; never put your customer key in command-line arguments. That single rule prevents the most common “key ended up in shell history / CI logs” failure.

Launch with a project

On Windows, the packaged PowerShell launcher accepts a workspace folder and optional switches:

.\Launch-SiberAI-Agent.ps1 -Workspace C:/projects/example
.\Launch-SiberAI-Agent.ps1 -CheckOnly

If -Workspace is omitted, the launcher opens a folder picker. The launcher uses the bundled runtime and engine. It is not a general-purpose CLI for picking another hosted model or routing traffic to a third-party OpenAI endpoint.

Parameters that matter

  • -Workspace — Project folder root for the file explorer
  • -StateDirectory — Where session and local state live
  • -NoBrowser — Skip opening a browser on startup
  • -CheckOnly — Verify package files and server syntax
  • -LocalDevelopment — Use the local 127.0.0.1 development origin
  • -LocalPort — Local SiberAI server port (default 3035)

Local-development parameters are intended only for a development server on your own computer. Do not treat them as a production exposure pattern.

Process lifecycle

The launcher prints the local workspace URL and process ID. Agent model requests still go through the SiberAI API with the paired account—launcher options do not replace authentication or billing checks. Stopping the OS process is not the same as signing out: use the interface actions when you need local key removal and remote revocation attempts.

Operational checklist

  1. Extract the ZIP without renaming internal package paths.  
  2. Run -CheckOnly after install or update.  
  3. Choose a narrow project workspace; avoid attaching secret-heavy roots.  
  4. Pair the account in the UI; keep sai_ide_ keys out of argv.  
  5. Note the PID and local URL the launcher prints for support tickets (without secrets).

Primary docs: cli, install, security, slash-commands.

FAQ

Q: Can I pass the API key as -ApiKey?
A: Do not put the customer key in command-line arguments; connect through the interface.

Q: What does -CheckOnly change?
A: It checks package files and server syntax without assuming a full interactive session workflow.

Q: Does the launcher choose the model?
A: Launcher options are not a general interface for selecting another service or model; the customer model id remains siber-v3.

Q: Is port 3035 public?
A: Default local port is for the local server; the Agent interface binds in a local trust model—do not expose it to the internet.

Team runbook snippet

Add a short internal page: “Install → CheckOnly → pick workspace → device login → first narrow task.” Link the CLI page for parameters and the security page for why argv must stay key-free. When someone asks for a “headless key flag,” point them to a proper server-side SDK integration with environment secrets instead of bending the Agent launcher.

For CI that only validates the package, -CheckOnly is the supported smoke step. For CI that calls the model, use the HTTP API with a workspace-scoped key—not the desktop launcher inside a build agent.

Why argv must stay key-free

Shell history, process lists and crash dumps routinely capture command lines. A Bearer sai_ide_ key placed in argv can leak to teammates, monitoring agents or pasted terminal screenshots. The UI pairing flow keeps the secret in the OS-backed store described on the security pages instead. If you need automation without a desktop, call the HTTP API from a service that reads secrets from a vault—not from Launch-SiberAI-Agent.ps1 flags.

Local port and browser behaviour

Default local port 3035 and -NoBrowser exist so you can script startup on a machine where opening a GUI browser is undesirable. They do not create a public SaaS listener. Combine with the documented 127.0.0.1 interface guidance: local trust only. -StateDirectory lets advanced setups separate session state from the default profile path when your IT policy requires a specific disk volume.

Install pairing

CLI usage assumes a verified package. After download, prefer the install docs’ integrity steps, then -CheckOnly, then first device login. Mixing files from two ZIP versions in one folder is a frequent source of “runtime not found” tickets that look like CLI bugs but are package hygiene problems.

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