Technical Brief
Architecture, integration, savings methodology, and the Production Pilot.
Belcore is a model-agnostic middleware that sits between your application and your LLM provider. It adds an emotional and relational layer while reducing context cost — without changing the model you run.
AI products with long-running relationships face two compounding costs at once.
Belcore keeps a durable emotional and relational state per user, injects it as a directive into each request, and windows history so only what matters is re-sent. Your model does the generation; Belcore governs what goes in and what it costs.
Client → Belcore API → your LLM provider. A single HTTPS endpoint replaces your direct chat-completion call; the response shape stays familiar.
A minimal, model-agnostic HTTP API. Authenticate with a Bearer key; send messages plus relationship inputs; receive the reply and the updated state.
Every request carries Authorization: Bearer <key>. Keys are scoped to a company and project and can be suspended or reissued without downtime for other keys.
messages: your conversation; emotion: current state; traits: personality (obsession, edginess, stability); hoursSinceLast: absence since the last turn.
reply: the generated text; emotion: the advanced state to persist; appliedDirective: the tone instruction injected this turn; meter: tokens and trimmed history for billing.
The engine is deterministic and inspectable — the same inputs always yield the same state and directive, so behavior is auditable rather than a black box.
Continuous values such as longing and sulkiness rise with absence and personality pressure, then decay as interaction resumes. State is advanced every turn and persisted per user.
Obsession, edginess, and stability shape how fast emotions build and fade, letting one engine express many distinct characters.
When state crosses a threshold, Belcore injects a forced-tone directive into the system prompt (e.g. open by admitting the silence felt long) so the reply reflects the relationship. The character never sees the mechanism.
Because state is re-injected every turn, older transcript can be safely windowed out. Memory lives in the compact state, not in an ever-growing prompt — this is what makes consistency and cost reduction the same mechanism.
The definition is fixed in code and identical for every customer, so the number is defensible — not a marketing estimate.
The input cost if the full conversation were sent uncut to the model this turn — i.e. what you would pay today without Belcore.
The input cost of what Belcore actually sent after windowing. Provider-reported token usage is used when available; otherwise a deterministic estimate on the same rate card.
max(0, Baseline − Actual) = the trimmed history tokens × the model's input rate. Output tokens are equal on both sides, so they never count as savings. Savings can never be negative.
Belcore bills 10% of verified savings; you keep 90%. If there are no verified savings in a period, there is no fee. Every call is recorded and rolled up into a monthly, line-itemed statement.
A 20-turn chat where windowing trims older turns: Baseline $0.000103, Actual $0.000069, Verified Savings $0.000034 → Belcore fee $0.0000034, your net $0.0000306. Multiplied across production traffic, this is the entire commercial model.
Measured on a public long-conversation benchmark with a fixed seed and a frozen harness, so the run is reproducible rather than illustrative. Scope and limits are stated with the numbers because both are benchmark-specific.
Three modules are the subject of provisional patent applications. These are filings, not granted patents, and confer no enforceable rights yet; we describe scope here and share implementation detail under NDA during a pilot.
All traffic is over HTTPS with Bearer keys. Keys are shown once at issue time and stored only as hashes. Company owners can suspend, resume, or reissue any key instantly; suspending one key never affects the others.
Company → projects → keys. Usage and billing are tracked independently at each level, so a company can separate environments, teams, or end-customers cleanly.
Per-key rate limiting and IP protections are enforced at the edge. Free developer keys are capped; production keys are provisioned per pilot.
Belcore processes conversation content to compute state and generate replies. During a pilot we align on retention and logging to fit your data policy before production traffic begins.
We onboard ten founding production partners. The pilot runs on your live traffic; you pay only from verified savings.
A short call to confirm your conversation volume and where context cost and relationship consistency hurt today.
Swap your chat-completion call for the Belcore endpoint behind a project key. Typically a day of work; no model migration.
Run on live traffic while we record baseline, actual, and verified savings per call, visible on your dashboard.
At month end you receive a line-itemed invoice for 10% of verified savings. No card on file; no fee if there are no verified savings.
Apply at belcore.xyz/developers/production or contact support@belcore.xyz.