Solwyn

ai.solwyn由 solwyn.ai 發布v0.5.1更新於 Nov 6, 2026

Check budgets before AI spend, record what your code spends and read Solwyn costs.

概覽

AI 產生的概覽

Solwyn 讓助理在 AI 花費前檢查預算、記錄呼叫,並讀取專案成本、預測、告警與方案資訊。

可以做什麼
  • 在花費前檢查並預留預算,花費後確認或記錄已完成的呼叫
  • 讀取預算狀態、預算規則、專案狀態與本月至今的支出預測
  • 讀取成本、成本總額、基準、漂移、單位經濟性、成本事件並模擬重新定價
  • 檢視代理執行、供應商容錯切換、未追蹤介面與已定價模型
  • 讀取告警、投遞回執、稽核事件、方案限額與方案變更預估
  • 讀取帳戶身分、手機驗證狀態、團隊成員與未接受的邀請
適用情境
適合助理或代理發起付費模型或媒體呼叫、需要依預算規則攔阻並把花費歸屬到專案的情境。也適合團隊透過助理檢視 AI 成本、預測、告警和方案限額。
執行需求
透過 uvx 從 PyPI 套件 solwyn-cli 以 stdio 在本機執行,僅支援桌面端。需要 Solwyn 帳戶;可用 Solwyn 登入,或設定 SOLWYN_API_KEY 專案 API 金鑰,省略時使用同一作業系統帳戶既有的鑰匙圈憑證。列出專案、帳戶概覽、稽核事件和團隊資料等工具需要登入而非專案金鑰。
安裝前請注意
SOLWYN_API_KEY 金鑰可存取所選專案的預算與成本資料。預算檢查會建立預留、預算確認會結算預留,重複或重送的檢查可能佔用預算,伺服器明確提醒不要重送結果不明的檢查。記錄與確認會把歸屬資料寫入 Solwyn,成本、用量和身分資料會傳送到 Solwyn 服務。方案預估與成本模擬為唯讀,不會計費。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Solwyn,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

工具

37

budget_status

Read budget status

Use `solwyn --json budget status` for polling. It is a pure read and does not hold budget. Accepts a Solwyn login or a project API key with access to the selected project.

輸入參數project

budget_check

Check and reserve budget

Reserve budget only immediately before the caller-made spend. Denial is a successful decision with allowed=false, not an execution error. Denials record attribution by default; no_record skips ingest. Never automatically replay an ambiguous check: each invocation can create a new reservation. Use `solwyn budget check` followed by `solwyn budget confirm` only around a specific un-instrumented provider spend that you make yourself. Never wrap SDK-instrumented code with `budget check` or `budget confirm`; the Solwyn SDK already reserves and confirms that spend. Fail-open is explicit: when a check returns `allowed=true` and `reservation_id=null`, skip confirm. Do not create repeated unconfirmed checks. They temporarily hold budget and can cause self-denial. Requires a write-scoped project API key; writes use its project, not the selected read project.

輸入參數tagsmodel必填qualityprovider必填no_recordresolutionimage_countagent_run_idis_estimatedaudio_secondsvideo_secondsfallback_models另有 5 個

budget_confirm

Confirm usage and record attribution

Settle a non-null reservation after caller-made spend using observed token/media usage and actual served provider/model. Records attribution with the same call_id and attempt_index; no_record skips ingest. Recording failure does not undo settlement. Save the FIRST recording_retry event. After known settlement success, use only record_only=FIRST event to retry ingest; this reports settlement=not_submitted. After a lost 204, within Core's project-bound 3600-second receipt window replay identical settlement inputs with no_record=true. After a known 204, submit only record_only=FIRST event; never replace it with the replay's unused new event. Ordinary fresh-confirm replay regenerates timestamp/SDK identity and rereads ambient tags. An event never returned cannot be reconstructed. The receipt cannot correct successful settlement. Missing-media 422 permits corrected quantities under the retained funding ID; never reserve again for completed provider work. Use `solwyn budget check` followed by `solwyn budget confirm` only around a specific un-instrumented provider spend that you make yourself. Never wrap SDK-instrumented code with `budget check` or `budget confirm`; the Solwyn SDK already reserves and confirms that spend. Fail-open is explicit: when a check returns `allowed=true` and `reservation_id=null`, skip confirm. Do not create repeated unconfirmed checks. They temporarily hold budget and can cause self-denial. Requires a write-scoped project API key; writes use its project, not the selected read project.

輸入參數tagsmodelstatuscall_idmodalityproviderrun_nameno_recordlatency_msmedia_usagerecord_onlyagent_run_id另有 20 個

get_project_status

Read project health

Read the configured project's budget and provider health without authorizing spend. Accepts a Solwyn login or a project API key with access to the selected project.

輸入參數project

get_forecast

Read spend forecast

Read the configured project's month-to-date spend forecast without authorizing spend. Accepts a Solwyn login or a project API key with access to the selected project.

輸入參數project

get_costs

Read grouped costs

Read project costs grouped by a Core dimension or tag:<key>, or account costs grouped by project by default. Shared filters/custom windows apply; account mode permits only model/provider/modality and window filters. Project mode accepts a project key or a Solwyn login; account=true requires a Solwyn login and is mutually exclusive with an explicit project. Account filters are restricted by Core.

輸入參數totagfrom_modelstatusaccountprojectgroup_bymodalityprovideragent_runtime_range另有 5 個

list_projects

List account projects

List projects visible to the logged-in user. Requires a Solwyn login. Requires a Solwyn login.

無需輸入參數。

get_cost_total

Read cost total

Read uncapped project cost totals with the same cost filters and custom windows as get_costs. Accepts a Solwyn login or a project API key with access to the selected project.

輸入參數totagfrom_modelstatusprojectmodalityprovideragent_runtime_rangeservice_tiermodel_fallback另有 3 個

list_budget_rules

List budget rules

Read budget rule conditions, routing, and separate paused/snoozed states. A snoozed hard_deny still denies; pausing releases enforcement. Rule keys change when keyed fields are edited. Project keys or a Solwyn login can list rules; with_last_fired=true requires a Solwyn login for the account latest-events read.

輸入參數projectwith_last_fired

record_call

Record completed call attribution

Record one caller-owned completed call without reserving or settling budget, including a record-only retry after known settlement success. Do not duplicate SDK events. Persist call_id before sending and reuse it with unchanged payload and attempt_index=0 on retries; omission generates a new ID per call. Core deduplicates the project/call_id/attempt_index identity while retained; this is not an update mechanism. Costs are server-priced. Inspect status, rejected and duplicates even when transport succeeds. Requires a write-scoped project API key; writes use its project, not the selected read project.

輸入參數tagsmodel必填statuscall_idmodalityprovider必填latency_msmedia_usageagent_run_idinput_tokensservice_tieroutput_tokens另有 4 個

list_tags

List attribution tag keys

List account-scoped tag discovery through a project. Team required; keys preserve whitespace and case. Accepts a Solwyn login or a project API key with access to the selected project.

輸入參數project

list_tag_values

List attribution tag values

Read one page of account-scoped values for a verbatim tag key. Team required; prefix is case-sensitive. Accepts a Solwyn login or a project API key with access to the selected project.

輸入參數key必填limitcursorprefixproject

list_agent_runs

List agent runs

List project agent runs. Costs are lifetime totals; the window only selects which runs qualify. Accepts a project key or login. Accepts a Solwyn login or a project API key with access to the selected project.

輸入參數sortlimitquerycursorparentprojectto_timefrom_timetime_range

get_agent_run

Read agent run

Read one agent run by storage ID or exact raw run name. Accepts a project key or login. Accepts a Solwyn login or a project API key with access to the selected project.

輸入參數run必填project

list_alert_events

Read alert history

Read cursor-paginated alert history and per-channel delivery receipts. Project keys work for project history; account history requires a Solwyn login. failed_only filters partial/failed rollups locally; scope is the rule scope. No mutation tools are exposed. Project history accepts a project key or a Solwyn login; account=true reads account-scope history, requires a Solwyn login and ignores project. Use list_alert_activity for all projects plus account scope.

輸入參數tofrom_scopecursoraccountprojectall_pagesrule_typetime_rangefailed_only

budget_check_batch

Check or recover a bounded batch

Submit 1–32 checks once to Core's durable batch journal. Retain a caller-prepared UUIDv7 operation_id before calling so an entirely lost MCP reply is recoverable. Omission generates an ID returned when a reply can be delivered. recover_only with that ID performs GET only: no admission, recording, resumption or renewed reservation authority. Indexed completed, failed, unknown and unattempted outcomes remain distinct; reservations expire at their original checked_at + 300 seconds and journal IDs expire after 24 hours. Never replay an unknown outcome or unattempted suffix automatically, or replace an ID to evade conflicts/expiry. Denials are successful decisions and record attribution unless no_record; retain each recording_retry payload for explicit record_only retry, which only ingests that identical event. Settlement remains separate. All calls share a fixed 30-second work deadline, 1 MiB HTTP response budget and 2 MiB result limit. An admitted request may remain effective after cancellation. Requires a project API key. Submission and record_only require write scope; recover_only GET accepts read-only scope. Uses the key's project, not the selected read project.

輸入參數checksno_recordrecord_onlyoperation_idrecover_onlyestimated_output_tokens

get_overview

Read account overview

Read calendar-month account spend, requests, trend, savings, and free-tier quota metadata. Requires a Solwyn login. Requires a Solwyn login.

無需輸入參數。

list_cost_events

List cost events

Read cursor-paginated cost events with shared filters and bounded all_pages. Accepts a Solwyn login or a project API key with access to the selected project.

輸入參數totagfrom_limitmodelcursorstatusprojectmodalityprovideragent_runall_pages另有 6 個

get_cost_baseline

Get cost baseline

Read committed daily spend baseline excluding today. Accepts a Solwyn login or a project API key with access to the selected project.

輸入參數daysproject

get_unit_economics

Get unit economics

Read unit-cost metrics and optional server-inferred causes. Accepts a Solwyn login or a project API key with access to the selected project.

輸入參數causeprojectvs_prevtime_range

get_cost_drift

Get cost drift

Compare historical stored spend and estimates with coverage and caveats. Accepts a Solwyn login or a project API key with access to the selected project.

輸入參數tofrom_projecttime_range

list_priced_models

List priced models

List exact available priced targets and current pricing version. Accepts a Solwyn login or a project API key with access to the selected project.

輸入參數project

simulate_costs

Simulate costs

Read-only historical repricing; never reserves or bills. 429: one bounded retry. No 503/transport replay. Accepts a Solwyn login or a project API key with access to the selected project.

輸入參數tofrom_model必填regionprojectprovider必填time_rangeservice_tier

list_provider_failovers

List provider failovers

Read recent provider/model failover groups, capped by Core at 50 groups. Accepts a Solwyn login or a project API key with access to the selected project.

輸入參數projecttime_range

list_untracked_surfaces

List untracked surfaces

Read untracked surfaces with effective retention window, capped by Core at 25 observations. Accepts a Solwyn login or a project API key with access to the selected project.

輸入參數projecttime_range

list_audit_events

List audit events

Read account audit events newest first with exact action filters and bounded pagination. Requires a Solwyn login.

輸入參數actioncursorall_pagestime_range

plan_status

Plan status

Read current plan limits, capabilities and subscription lifecycle state. Accepts a Solwyn login or a project key with account context; no project selection is required.

無需輸入參數。

plan_catalog

Plan catalog

Read plan catalog: prices in cents, currency, included requests, decimal cent overage, limits and capabilities. Accepts a Solwyn login or project keys with authenticated user context; no project selection is required.

無需輸入參數。

get_whoami

Get whoami

Read account identity and email verification; project keys return local key context without a user identity. A Solwyn login reads user/account/project identity; project keys return only local auth and selected-project context without revealing the key.

無需輸入參數。

get_account_phone

Get account phone

Read user phone verification and SMS consent state. Verification and consent writes stay in the dashboard. Requires a Solwyn login.

無需輸入參數。

list_alert_activity

List alert activity

Read account-wide activity across all projects plus account scope with delivery receipts. Requires a Solwyn login.

輸入參數cursorall_pagesevent_typetime_range

list_open_alert_deliveries

List open alert deliveries

Read pending/retrying deliveries and attempts regardless of event retention. Requires a Solwyn login.

輸入參數cursorall_pages

budget_uncounted

Budget uncounted

Read advisory unpriced upper-bound offline traffic, possibly overcounted. A 503 means unknown; retry the read, never assume zero or no past traffic. Accepts a Solwyn login or a project API key with access to the selected project.

輸入參數project

get_account_alert

Get account alert

Read account spend alert configuration, optionally latest firing and lifecycle history within Core’s 30d retention window. Requires a Solwyn login.

輸入參數with_last_fired

plan_preview

Plan preview

Read a plan-change estimate: immediate proration or scheduling at term end, integer cents, currency and line periods. Never changes a subscription or bills; not a price lock. No 503/transport replay. Requires a Solwyn login at any account role; no selected project required.

輸入參數tier必填interval必填

list_team_members

List team members

Read the complete active account roster in join order. Any account member may read it; no project selection is required. Requires a Solwyn login.

無需輸入參數。

list_team_invites

List team invites

Read all open account invitations and their delivery status, including expired invitations. Core requires owner/admin role; no project selection is required. Requires a Solwyn login.

無需輸入參數。

版本歷史

4
  1. v0.5.1最新Nov 6, 2026
  2. v0.5.0Nov 5, 2026
  3. v0.4.3Nov 3, 2026
  4. v0.4.0Nov 1, 2026

評分

已滿足適用檢查項的 55%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分

    請在註冊中心條目中發布圖示。

  • 文件15 分

    請宣告包含 README 的 GitHub 儲存庫,或在 OAuth 受保護資源後設資料中提供 resource_documentation。

  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。