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.
projectai.solwyn由 solwyn.ai 發布v0.5.1更新於 Nov 6, 2026
Check budgets before AI spend, record what your code spends and read Solwyn costs.
Solwyn 讓助理在 AI 花費前檢查預算、記錄呼叫,並讀取專案成本、預測、告警與方案資訊。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
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.
projectCheck 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 個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 個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.
projectRead 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.
projectRead 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 account projects
List projects visible to the logged-in user. Requires a Solwyn login. Requires a Solwyn login.
無需輸入參數。
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
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_firedRecord 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 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.
projectList 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必填limitcursorprefixprojectList 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_rangeRead 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必填projectRead 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_onlyCheck 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_tokensRead 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
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
Read committed daily spend baseline excluding today. Accepts a Solwyn login or a project API key with access to the selected project.
daysprojectGet 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_rangeGet 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_rangeList 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.
projectSimulate 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_tierList 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_rangeList 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_rangeList audit events
Read account audit events newest first with exact action filters and bounded pagination. Requires a Solwyn login.
actioncursorall_pagestime_rangePlan 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
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
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
Read user phone verification and SMS consent state. Verification and consent writes stay in the dashboard. Requires a Solwyn login.
無需輸入參數。
List alert activity
Read account-wide activity across all projects plus account scope with delivery receipts. Requires a Solwyn login.
cursorall_pagesevent_typetime_rangeList open alert deliveries
Read pending/retrying deliveries and attempts regardless of event retention. Requires a Solwyn login.
cursorall_pagesBudget 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.
projectGet 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_firedPlan 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
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
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.
無需輸入參數。
已滿足適用檢查項的 55%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
請在註冊中心條目中發布圖示。
請宣告包含 README 的 GitHub 儲存庫,或在 OAuth 受保護資源後設資料中提供 resource_documentation。
請在儲存庫或註冊中心條目中宣告授權條款。