Quick Start
Prepare metadata, register your provider, and configure your first model offer.
To receive requests through Fossa, apply to join its provider list in the apply channel in Discord. Registering your provider does not add it to the list. You can also serve clients that use another existing list.
Before you begin
A provider publishes offers, validates authorization, serves inference, and claims payment for reported usage. Prepare a Solana wallet, SOL for network fees and account storage, and an HTTPS inference endpoint. Keep keys and transaction journals private.
The CLI manages accounts. Your runtime handles inference. You can integrate the Rust SDK or implement the program contract. Provider lists control which registered providers a client can book.
Install the CLI
Install the fossa binary, then inspect its help. Commands that change state show a plan until you add --execute.
Describe your provider
Save this as provider.json with your name and full inference URL. The endpoint must verify bookings before serving requests. Its path is separate from the metadata document’s location.
The metadata contract commits to exact document bytes. Later edits require a signed update.
Describe your model
Save model.json with the exact canonical model ID and ordered checkpoint identities. Model modalities, limits, and capabilities describe the family; your offer publishes the support and token limits your service provides. Use the same ID in your offer configuration. Follow the model naming convention: use UC for an uncensored variant’s display name.
For an existing model, use its committed document. fossa model show --model MODEL_ID returns that reference. Your wallet cannot replace another authority’s model metadata.
Configure your offer
Save provider.toml beside both JSON files. Replace the keypair path and model ID. Keep active = false while preparing the runtime. Measure declared speed; the example value is a placeholder.
Rates are payment atoms per million tokens. The values below mean 1.00, 0.50, and 2.00 USDC per million input, cached-input, and output tokens. The selected list’s surcharge is additional.
You can omit checkpoint to use the first ordered checkpoint in the model document, or the first checkpoint if none are ordered. Publish that exact identity in your offer and enforce it in your runtime. Use Latest as the display label when no numbered version exists.
Configure global and wallet concurrency and quota before activation. The retained capacity offer field does not divide shared provider capacity.
File paths resolve beside the configuration. Omit metadata_uri for optional immutable hosting, or provide your own document URI. Access settings support hosted and custom chain access.
Review onboarding
Validate your documents and inspect the plan. Local validation and config show need no network. Onboarding reads current accounts; hosted access signs authentication messages. Planning does not upload documents or submit transactions.
A plan can report missing registration, list membership, routing storage, or model books. The CLI executes no onboarding steps while any blocker remains. Complete the prerequisites below, then request a new plan.
Register your provider
If your profile is missing, register it separately before asking for list admission. Inspect the command’s plan, then add --execute to register. Skip this step if your profile already exists.
Use the same metadata document as your configuration. If you configured a custom metadata URI, pass it with --metadata-uri here too. Registration does not add you to a list.
Join a provider list
Give the list authority your registered identity and model IDs. The authority must admit your identity and prepare routing and offer books for each existing model. Ask it to resolve missing or full storage reported by the plan.
A model must exist before its list books can be created. For a new model, use the SDK’s initialize_model builder and follow model registration requirements first. The CLI has no standalone model-create command. Do not expect a blocked onboarding plan to create the model.
After these prerequisites, onboarding can initialize your policy, shared limits, list consent, and offers. You do not need to run routing enable separately first. Membership and provider consent remain distinct requirements. See list management.
Publish your offers
Run onboarding again after registration, admission, and book preparation. Execute only when the refreshed plan has no blockers. Keep active = false until your runtime is ready.
Execution can publish metadata and reconcile policy, limits, consent, and offers. Steps use separate transactions. Earlier confirmed steps remain if a later execution step fails. Preserve journals and reconcile uncertain submissions before retrying.
Handle requests and settlement
Your runtime must:
- Verify the signature and exact request-body hash. Bind them to the expected owner, program, market, provider, booking, and generation. Check reserved status, deadline, model, exact checkpoint, requested modalities, and token limits.
- Persist replay protection before inference. Admit a booking generation once across restarts and replicas.
- Serve inference directly to the client and measure usage within the booked limits.
- Submit an authenticated usage claim, or release a reservation without charging. Save signed transactions and reconcile uncertain outcomes.
The SDK’s RequestVerifier and provider example cover authorization checks. You supply inference and durable acceptance state. Reusable claims require receipt publication. Settlement also pays the booking’s pinned surcharge destinations.
Your service receives request content. Advertise only privacy terms it can honor; the blockchain cannot enforce retention.
Booking concurrency and quota
Concurrency limits active bookings. Quota limits successful bookings in a time window. Configure both for the provider total and for each signing wallet at that provider. Provider totals combine all wallets; each wallet’s limits combine all its user accounts. Both scopes span every model and list. A provider with concurrency 100 can use all 100 slots for one model without dividing them among offers.
Use provider limits --concurrency 300 --quota 300 --wallet-concurrency 300 --wallet-quota 300 to plan 300 active bookings and 300 successful bookings per 60-second window at both scopes. Both window options default to 60 seconds. Add --execute after review. Set these limits before activating offers; onboarding can create an initially unlimited provider policy.
Zero disables the corresponding limit. Windows must be 1–86,400 seconds and start with the first successful booking. Rejected transactions consume no allowance. A successful booking counts even if no inference follows. Claim, release, and executed expiry free concurrency but do not refund quota. Time alone does not release an expired reservation.
Limit updates preserve counters and current window history. Lowering a limit can block new bookings until usage falls or the window ends. HTTP and IP limits remain separate runtime controls.
Request limits
Publish optional requestLimits in provider metadata and enforce them across all served models. The fields cover total, per-IP, and per-wallet request rates and concurrency. Omitted limits are unspecified.
Verify the wallet signature and booking before applying wallet limits. Count admitted requests, including later failures. Keep a concurrency slot until inference and cleanup stop. Preserve cancellation when inference allowance is exhausted. Return HTTP 429 and Retry-After for quota rejection.
Coordinate counters across replicas if they share one advertised policy. Restarting local counters can reset windows. IP limits can group users behind one network; more wallets can bypass wallet limits. Neither identifies a unique person.
These runtime rules are separate from on-chain booking concurrency and quota. A valid booking does not guarantee immediate HTTP admission. Advertised limits are upper bounds, not a capacity guarantee.
Relayed client addresses
Use the connection IP for direct clients. When a relay supplies an original client address, verify its signed assertion against a public key you already trust. Never trust an address header or a key supplied by the request alone.
The SDK verifier binds the asserted IP and timestamp to the provider, path, booking, generation, wallet, and exact signed request. Wallet authorization and booking checks remain required.
Accept forwarded connection information only from explicitly trusted peers that replace incoming copies. Apply IP limits to the verified address and wallet limits to the authenticated signer. Direct requests do not require relay assertions.
Activate your offer
Activate after authorization, replay prevention, inference, and settlement work together. Use provider show to inspect global and wallet limits. Use routing show --model MODEL_ID to inspect the selected list and model offers. routing offer --model MODEL_ID --terms ./offer.json plans exact OfferTerms changes; add --execute after review. Set the configuration’s active state too, so later onboarding preserves it.
Set active: false to stop new bookings while completing existing work. routing freeze pauses all your models on the selected list. Use controls that match the market’s routing mode.