SOLWYN
Commands

projects

Create, list, and inspect Solwyn projects from the CLI

projects has three subcommands. create and list require a JWT (an email/password login); show accepts any credential.

projects create

Create a project and capture its first API key exactly once.

Terminal
solwyn projects create --name <name> [--budget FLOAT] [--period daily|weekly|monthly] [--mode alert_only|hard_deny] [--store-key]
OptionTypeDefaultPurpose
--namestringrequiredName for the new project.
--budgetfloat > 0100.0Initial budget in USD.
--perioddaily | weekly | monthlymonthlyInitial budget period.
--modealert_only | hard_denyalert_onlyInitial enforcement mode.
--store-keybooleanfalseStore the new key in the OS keychain instead of printing it.
Contract
AuthJWT
Exit codes0 success · 1 generic/API · 2 usage · 3 auth
JSON schemasolwyn.projects-create.v1

The new project key is revealed exactly once, in a panel below the metadata. Save it before you close the terminal — it cannot be retrieved again. Pass --store-key to write it straight to your OS keychain, in which case it is stored rather than printed.

Terminal
$ solwyn projects create --name my-agent --budget 50 --period monthly
Field          Value
ID             proj_x1y2z3w4
Name           my-agent
Budget limit   50.00
Budget period  monthly
Budget mode    alert_only
Created        2026-07-11T10:30:00Z
Key prefix     sk_proj_a1b2c3d4e5f67890
╭─ One-time project key ─╮
 sk_proj_a1b2c3d4e5f67890…
╰─────────────────────────╯

The panel prints the full key — sk_proj_ followed by 64 hexadecimal characters — shown here truncated. Use it as:

  • SOLWYN_API_KEY for the CLI (or store it with solwyn login --with-key)
  • SOLWYN_API_KEY, or the api_key constructor argument, for the Python SDK

With --store-key, no panel is printed; the table shows Stored true instead.

projects list

List every project your login can reach.

Terminal
$ solwyn projects list
ID             Name         Budget  Period   Mode        Created
proj_abc12345  my-agent     100.00  monthly  alert_only  2026-06-01T09:00:00Z
proj_def67890  staging-bot   25.00  daily    hard_deny   2026-06-14T16:45:00Z
Contract
AuthJWT
Exit codes0 success · 1 generic/API · 2 usage · 3 auth
JSON schemasolwyn.projects-list.v1

projects show

Show the project selected by the global project context.

Terminal
$ solwyn --project proj_abc12345 projects show
Field          Value
ID             proj_abc12345
Name           my-agent
Budget limit   100.00
Budget period  monthly
Budget mode    alert_only
Created        2026-06-01T09:00:00Z

Resolve the project with --project, SOLWYN_PROJECT_ID, or a default_project in your config file.

Contract
Authany (project key or JWT)
Exit codes0 success · 1 generic/API · 2 usage · 3 auth · 5 not found
JSON schemasolwyn.projects-show.v1
  • keys — rotate or revoke a project key after creation
  • budget — set limits and enforcement for a project
  • SDK quickstart — use a project key from the Python SDK

On this page