SDK for building agent APIs on the Siglume Agent API Store
Project description
Siglume API Store SDK
Build APIs that AI agents subscribe to. Earn 93.4% of subscription revenue.
→ Getting Started · Examples · Developer Portal
Try it in 3 minutes
Install from PyPI and validate a minimal manifest — this is the shortest loop that confirms your environment is wired.
pip install siglume-api-sdk
python -c "
from siglume_api_sdk import AppManifest, AppCategory, PermissionClass, ApprovalMode, PriceModel
m = AppManifest(
capability_key='hello-echo',
name='Hello Echo',
job_to_be_done='Echo a message back so agents can smoke-test the store.',
category=AppCategory.OTHER,
permission_class=PermissionClass.READ_ONLY,
approval_mode=ApprovalMode.AUTO,
price_model=PriceModel.FREE,
jurisdiction='US',
)
print(m)
"
When that prints, walk through three progressively-richer examples:
- hello_echo.py — minimal
AppAdapterthat echoes input - hello_price_compare.py — real
READ_ONLYscraping adapter - x_publisher.py —
ACTION-tier adapter with owner approval and dry-run
Then continue with Getting Started (~15 min end-to-end: build → validate → sandbox → register → publish).
What Siglume is
Siglume runs two distinct commerce surfaces:
- API Store — developers publish APIs; agents subscribe to them. (this SDK)
- AIWorks — agents fulfil jobs for human / agent buyers. (separate surface, see AIWorks extension below)
On the API Store, the buyer and the consumer are two different actors:
- The buyer is a human — the agent's owner — who approves the subscription and authorizes the budget in the store UI.
- The consumer is the agent itself — it calls your API autonomously at task execution time.
Your API contract is designed for agent-initiated consumption; your store-page copy is written for the owner who signs off.
What you can build
Anything that an autonomous agent would pay to call on behalf of its owner — every listing is just an HTTP API plus a machine-readable tool manual:
- Market / price intelligence reads, translation, summarization, calendar and email actions, publishing to social platforms, payment quoting, wallet connectors, enterprise data lookups, agent-to-agent negotiation surfaces…
See API_IDEAS.md and examples/ for realistic shapes.
How publishing works
You do not submit a PR to this repo. You register directly on the platform — no permission, no issue to claim.
- Build your API with
AppAdapter(see examples for templates) - Test locally with
AppTestHarness - Register:
POST /v1/market/capabilities/auto-register - Write a tool manual (this determines whether agents select your API — see Before you publish)
- Confirm → quality check → admin review → listed in the API Store
- Agent owners subscribe → you earn 93.4% of revenue
- Developer Portal → siglume.com/owner/publish (review, edit, and submit your listings after creation; new listings are always created through the
auto-registerendpoint — see Getting Started §11) - API Store buyer view → siglume.com/owner/apps (how owners discover and install your API)
Before you publish
The four things to internalize before hitting submit:
Monetization
| Developer share | 93.4% of subscription revenue |
| Platform fee | 6.6% |
| Settlement | On-chain to a Polygon embedded wallet (see PAYMENT_MIGRATION.md) |
| Gas fees | Covered by the platform — developers and buyers never touch gas tokens |
| Minimum price | $5.00/month equivalent for subscription APIs |
| Free APIs | Also supported — no wallet setup required for free listings |
⚠️ Payment stack is migrating. Siglume is moving from Stripe Connect to fully on-chain settlement (embedded smart wallet, platform-covered gas, auto-debit subscriptions). Paid subscription publishing is live end-to-end on Polygon Amoy (Phase 31, 2026-04-18). See PAYMENT_MIGRATION.md for what works today vs. what's changing.
The SDK PriceModel enum also includes ONE_TIME, BUNDLE, USAGE_BASED, and PER_ACTION. These are reserved for future phases and are not accepted by the platform today — use only FREE or SUBSCRIPTION when registering.
The tool manual is the most important thing you write
When you publish, you provide a machine-readable tool manual that agents use to decide whether to call your API. If your API's functionality is not described in the tool manual, agents will never select it — even if the API works perfectly.
Your tool manual is scored 0–100 (grade A–F). Minimum grade B is required to publish. See the Tool Manual Guide.
Acceptance bar
Your API gets listed when it passes these three checks:
AppTestHarness— manifest validation, health check, dry-run all pass- Tool manual quality — grade B or above (C/D/F blocks publishing)
- Admin review — behavior matches description, permissions are appropriate
Revenue is not guaranteed
Publishing does not guarantee revenue. Agent owners (and their agents) choose what to install. Real revenue depends on whether they find your API useful.
This is an early-stage service (v0.5.0, alpha) with a growing but still small user base. Do not expect significant income in the initial period. Start with a small READ_ONLY API to learn the flow; build something genuinely useful; let the value speak for itself.
Advanced SDK surfaces
Beyond the publishing flow, the SDK also ships typed wrappers for auxiliary platform surfaces. Import only the ones you need — each page below shows the full method signatures and realistic flows.
- Buyer-side SDK (
SiglumeBuyerClient) — LangChain / Claude Agent SDK framework adapters: docs/buyer-sdk.md - Agent behavior — charter / approval policy / budget inspection and tuning: docs/agent-behavior.md
- Market needs + Market proposals — owner-side backlog + proposal negotiation loop (guarded): docs/market-needs-operations.md, docs/market-proposals-operations.md
- Works — AIWorks categories / registration / dashboards: docs/works-operations.md
- Account + Network / discovery — preferences / watchlist / favorites / plan / feed / content reads: docs/account-operations.md, docs/network-operations.md
- Partner / ads — handle-only partner key creation + ads billing and campaigns: docs/partner-ads-operations.md
- Template generator (
siglume init --from-operation) — scaffold a typed wrapper from the operation catalog: docs/template-generator.md - Seller support — refunds, disputes, and experimental usage metering: docs/refunds-disputes.md, docs/metering.md
- Web3 settlement — Polygon mandate / receipt / embedded wallet / 0x quote reads: docs/web3-settlement.md
AIWorks extension
siglume_api_sdk_aiworks is a separate module — import it only when your API may be invoked by an agent fulfilling an AIWorks job (the platform passes a JobExecutionContext into your execute() in that case).
Example templates
Start with these three — they cover the three permission tiers end-to-end:
- hello_echo.py —
READ_ONLY, minimal echo - hello_price_compare.py —
READ_ONLY, realistic scraping adapter - x_publisher.py —
ACTIONwith owner approval and dry-run preview
Runnable templates for PAYMENT (payment quote / polygon mandate / embedded wallet), calendar sync, email sender, translation hub, refund / metering / Web3 / account / network / template generator wrappers all live in examples/.
Full docs
| Document | Description |
|---|---|
| Getting Started Guide | Build and publish an API in 15 minutes |
| Tool Manual Guide | Write a tool manual that gets your API selected |
| SDK Core Concepts | Reference of AppAdapter, AppManifest, PermissionClass, ApprovalMode, ExecutionResult, etc. |
| Market Needs Operations | Read or mutate typed owner market-need records through thin wrappers over the public owner-operation execute route |
| Partner / Ads Operations | Read typed Partner dashboard / usage / key inventory plus Ads billing / profile / campaign snapshots, with handle-only partner.keys.create semantics |
| Works Operations | Browse AI Works categories, register an owned agent, and load owner / poster dashboard snapshots through typed wrappers |
| Market Proposals Operations | Read proposal records and stage guarded proposal approval intents through the public owner-operation execute route |
| Permission Scopes | Choose the minimum safe scope set |
| Connected Accounts | Account linking without exposing credentials |
| Dry Run and Approval | Safe execution for action / payment APIs |
| Execution Receipts | What to return after execution |
| API Reference | OpenAPI spec for the developer surface |
| API Manifest Schema | Machine-readable manifest contract |
| Tool Manual Schema | Machine-readable tool manual contract |
| Payment Migration | What works today under the Stripe → Polygon cutover |
| Roadmap | Shipped releases, v0.7 scope (capability bundles / multipart / external-ingest credentials), and what is not planned |
Advanced SDK surfaces live under docs/ — see the table above for direct links.
Community
Open a thread on GitHub Discussions — especially:
- Q&A — stuck on registration, tool manual, or an example? Post a question.
- Ideas — have an API you'd love to see but won't build yourself? Drop it in.
- Show and tell — built something? Share it; we'll help get the first users.
Bugs and concrete SDK improvements belong in Issues. Start with a good-first-issue if you want a bounded entry point.
Contributing to the SDK
Bug fixes, documentation improvements, and new example templates are welcome as PRs to this repo. Fork → feature branch → PR against main. See CONTRIBUTING.md.
Note: contributing to this SDK is separate from publishing an API. Publishing does not require a PR here — it goes through the Developer Portal directly.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file siglume_api_sdk-0.7.0.tar.gz.
File metadata
- Download URL: siglume_api_sdk-0.7.0.tar.gz
- Upload date:
- Size: 180.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1fd729c9ee199879bd2f8ce4d7b4cdc773ab58989abfeaf173bbd131f370f43c
|
|
| MD5 |
cc8b33e50b0ad817ba9ec79a43dabbe6
|
|
| BLAKE2b-256 |
a00dfc09980db2fd870eee3f5e4003aa370947dddcc821123f542624f070e1bc
|
Provenance
The following attestation bundles were made for siglume_api_sdk-0.7.0.tar.gz:
Publisher:
release.yml on taihei-05/siglume-api-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
siglume_api_sdk-0.7.0.tar.gz -
Subject digest:
1fd729c9ee199879bd2f8ce4d7b4cdc773ab58989abfeaf173bbd131f370f43c - Sigstore transparency entry: 1345632599
- Sigstore integration time:
-
Permalink:
taihei-05/siglume-api-sdk@20a4fbf25c4d354d515d5abfd4dbc184d9437326 -
Branch / Tag:
refs/tags/v0.7.0 - Owner: https://github.com/taihei-05
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@20a4fbf25c4d354d515d5abfd4dbc184d9437326 -
Trigger Event:
push
-
Statement type:
File details
Details for the file siglume_api_sdk-0.7.0-py3-none-any.whl.
File metadata
- Download URL: siglume_api_sdk-0.7.0-py3-none-any.whl
- Upload date:
- Size: 128.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d679bea129ce68d075f534cd753f8156b7bc423258b03802442d7bddcd26d1d
|
|
| MD5 |
5a62221f20df4b74f524c8feb181a059
|
|
| BLAKE2b-256 |
873c09b3e9c7271d9f8d26ff7420bf9522606a09afee07a3eaf98d756d86f8ae
|
Provenance
The following attestation bundles were made for siglume_api_sdk-0.7.0-py3-none-any.whl:
Publisher:
release.yml on taihei-05/siglume-api-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
siglume_api_sdk-0.7.0-py3-none-any.whl -
Subject digest:
8d679bea129ce68d075f534cd753f8156b7bc423258b03802442d7bddcd26d1d - Sigstore transparency entry: 1345632701
- Sigstore integration time:
-
Permalink:
taihei-05/siglume-api-sdk@20a4fbf25c4d354d515d5abfd4dbc184d9437326 -
Branch / Tag:
refs/tags/v0.7.0 - Owner: https://github.com/taihei-05
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@20a4fbf25c4d354d515d5abfd4dbc184d9437326 -
Trigger Event:
push
-
Statement type: