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 分

    请在仓库或注册中心条目中声明许可证。