1Scope
- 1.1
This policy covers how we handle your personal data when you use the agiplan.dev website, console and API. The operating entity is the data controller for the purposes of this policy.
- 1.2
It does not cover how model providers handle data within their own services. Through our scheduling gateway, your requests ultimately reach one of those providers; see section 6 and that provider's own policy.
2What we collect
- 2.1
Account data: email address, an irreversible digest of your credentials, account creation time, your stated location. If you add a passkey, we also hold its public key, credential ID, authenticator model identifier (AAGUID), a flag for whether it syncs across devices, the name you give it, and when it was added and last used. The passkey's private key never leaves your device or password manager; we cannot obtain it and cannot use it to sign in as you.
- 2.2
Transaction data: orders, payment channel receipts, invoice details and tax number (only when you request an invoice), balance ledger entries. Invoice files we issue to you (PDF or image) are also transaction data; they show the billing name, tax number, amount and issue date.
- 2.3
Usage metadata: call time, target capability group and model identifier, input and output token counts, the resulting CU, latency, whether a failover occurred, HTTP status code, trace ID, and a client category inferred from the User-Agent (for example Claude Code or Codex; the User-Agent string itself is not stored). When you use auto we also record the tier routing gave that turn and why (for example "agent session with tools" or "same turn resent unchanged"), and whether the turn was resent or cut off mid-stream; this is only the category of tier and reason, contains no request content, and is kept for 90 days. To tell whether a cache loss was on our side, each call also records a yes/no: whether the request still started the way the same conversation's previous request did; for this we keep a one-way digest of the previous request's prefix in the session-affinity record (16 hex characters, from which the content cannot be recovered), deleted when that record expires after 5 minutes to 1 hour. Whether you have turned on advanced usage display, and which version of its explanation you confirmed, is also stored on your account.
- 2.4
Technical logs: IP address, user agent, API key identifier (never the key itself). Used for abuse prevention and troubleshooting.
- 2.5
Desktop helper: When you use the desktop helper, we record the name of the device you sign in from and the client version. When the desktop helper starts a sign-in, we also record the IP address and user agent that started it, show them on the page where you approve the sign-in, and tell you whether they match your current network, so you can spot a sign-in request you did not start. Diagnostic information you attach to a support ticket submitted from the desktop helper has sensitive content removed before it is stored, and is used only to handle that ticket.
- 2.6
Mobile number (only if you state your location as mainland China, bind one yourself on the account page, or register or sign in with a mobile number). Used for real-identity verification as required by law, for sign-in, and for account security checks; never shown publicly and never used for marketing. To send verification codes we pass the number and the code to our SMS provider, Alibaba Cloud (Alibaba Cloud Computing Co., Ltd.). Numbers in send records are masked after 180 days, and the number is deleted together with the account when you close it.
- 2.7
GitHub account identifier (only if you sign in with GitHub or connect GitHub on the account page). We obtain your numeric account ID and verified primary email from GitHub to identify and sign in to your account; we obtain nothing else from your GitHub profile and do not store access credentials. You can disconnect at any time on the account page, and the identifier is deleted when you do.
- 2.8
Gift card recipient email: if you ask us to email a gift card for you, you provide the recipient's email address, your name as sender and a message. We use them only to send that gift card (at most 2 emails per card), not for marketing, and we do not create an account for the recipient from them. You must make sure you are entitled to give us the recipient's email address. The email states why it was sent and carries an unsubscribe link; once a recipient unsubscribes we send no further gift card emails to that address.
- 2.9
Shipping details for physical cards: recipient name, phone number and address. Used only to ship that order and handle its after-sales. Staff see masked details by default; viewing the full address requires a separate permission and every view is logged.
- 2.10
Partner applications (only if you apply to become a partner): the name you give, your social media or community accounts, reach, school or organization name, event details and self-description, plus your email, phone number and WeChat ID; anything you later edit or add as a note is included. Used only to assess the application and to talk with you about the partnership, visible only to the staff handling partnerships, with every view logged; never provided to third parties and never used for marketing.
3What we do not collect
- 3.1
Request and response bodies sent through `/v1/chat/completions` and `/v1/messages` are never written to persistent storage. The prompts, context and attachments you send to a model, and what the model sends back, do not enter our logs, databases or object storage. Console chat goes through the same pipeline as the endpoints above, and its content is likewise not written to persistent storage. Chat history is kept only in your browser on the current device; our servers do not keep it, and you can delete it from the chat list. Files you add in console chat (PDF, Excel, Word, etc.) are converted to text in your browser and sent as message text; the files themselves are not uploaded. The three exceptions are listed here, not buried elsewhere.
- 3.2
Exception one: Responses sessions. `/v1/responses` offers `previous_response_id` so you don't have to resend the whole context each turn. So that any turn can be continued, on every `/v1/responses` call we store that turn's new input, the model's output and the system prompt in our database, whether or not you later use the parameter. That content is kept for at most 5 hours and then deleted by a scheduled job. `/v1/chat/completions` and `/v1/messages` produce no such storage; if you don't want those 5 hours, use one of them. We hold this state in our scheduling gateway rather than at a model provider so that failover stays invisible to you — those 5 hours are the price, so we write them down.
- 3.3
Exception two: generated images and videos, and video prompts. Video generation (`/v1/videos` and the online video page in the console) takes minutes, so each job is kept as a record that includes your prompt and parameters such as resolution and duration (reference media themselves are not stored); that record is currently kept for the life of the account with no automatic deletion; once the job has finished, deleting it in the console or with `DELETE /v1/videos/{id}` deletes the record, prompt included, immediately, and it is also deleted on account closure. Generated videos, and images you ask to receive as a link (`response_format: "url"`) where the link points to this site, live in our object storage and are deleted automatically after 7 days; deleting a video job expires its video immediately. When you generate images in the console and leave the page (or stop waiting) before they come back, the images that couldn't be delivered to your browser are held in object storage and deleted automatically after 6 hours; during that time only you can get them back from the Image page and your usage records. The prompt is not stored with them.
- 3.4
Exception three: the asset library. Files in the asset library are reference images and audio you deliberately save in order to reuse (added in the online video page or uploaded through `/v1/assets`); they are not left behind by requests. They live in our object storage, each kept for 30 days after it was last used and then deleted automatically, and you can delete them at any time. At generation time we give a temporary access link to the provider of the model you chose. References placed directly in a request (base64 or a URL) do not enter the library and are still not stored.
- 3.5
Outside those three exceptions, this is not "retained briefly" or "retained encrypted". It is *not written*. Nothing in the usage metadata listed above contains the content itself.
- 3.6
We use no cookies or equivalent technology for cross-site tracking, and integrate no third-party advertising or behavioural analytics SDK. The site sets only two kinds of cookie: the session cookie required to keep you signed in, and the sign-up source cookie `ap_attr`, written when you arrive through a link carrying a referral code or `utm_*` parameters, or arrive from another website for the first time. It records the referral code, referring site, campaign parameters and landing page, expires after 30 days, and is read only by this site. If you sign up within those 30 days, that source information is stored as your account's sign-up source, used to settle referral earnings and to measure promotion channels; the IP address you signed up from is recorded for every account, to detect self-referral and similar abuse (retention in section 8).
4Why we're able not to collect it
- 4.1
For `/v1/chat/completions` and `/v1/messages`, the gateway streams request and response bodies through: data passes through memory buffers to the model provider and back to you, and at no point does any code hand it to the storage layer. Token counts for metering come from the usage fields the model reports or a local tokenizer, neither of which requires keeping the text.
- 4.2
This carries a cost we accept: when something goes wrong, we cannot look at what you sent (outside the exceptions in section 3). When you report a problem we see only metadata against a trace ID. We think the trade is worth it — the difference between a system that *could* retrieve your content if it had to and one that *cannot* is a difference in kind, not degree.
- 4.3
If you want help diagnosing a specific call, you will need to supply the content yourself. We will not, and cannot, recover it from history.
5How we use it
- 5.1
To run the service: routing requests, metering quota, producing invoices, keeping you signed in.
- 5.2
To keep it safe: identifying anomalous call patterns, preventing key abuse and quota circumvention. Every such judgement rests on metadata (see section 8).
- 5.3
To stop codes and trial cards being claimed improperly: at sign-up we normalise different spellings of an email address (for example dots in a Gmail address or a "+" suffix), and one inbox can register only one account. When a campaign trial card is redeemed, we compare the redeeming account and the issuing account on their normalised email, the networks each used to sign in over the past 30 days (the IPv4 address, or the first 64 bits of an IPv6 address), and an irreversible digest of each one's browser identifier at sign-up: a matching normalised email cannot redeem; a matching network or digest is activated as normal and reviewed by staff, who may then revoke it. Codes with a per-network limit are counted by the network at the time of the claim. These comparisons use only information already collected above; nothing extra is collected.
- 5.4
To meet legal obligations: tax, accounting and record-keeping requirements.
- 5.5
To notify you: quota warnings, incident notices, changes to terms. Marketing email requires separate consent and can be turned off at any time.
- 5.6
We do not use any of your data to train or fine-tune models, and we do not sell, rent or otherwise supply it to data brokers. This is also a contractual obligation under our Promises.
6Who we share it with
- 6.1
Model providers. Your request body must reach the provider behind the model you selected, or no inference is possible. We transmit over API channels and enable the provider's zero-retention or no-training options wherever they exist. The console shows which provider currently serves each model.
- 6.2
Payment channels. Order amount and order number only. We never touch your card number or payment credentials.
- 6.3
Infrastructure providers. Cloud compute and managed database. They act as processors under contract and may not access business data for their own purposes.
- 6.4
Email delivery provider. We send sign-in codes, service notices, receipts and invoice files through a contracted email delivery service, which receives your email address and the message content (including receipt and invoice attachments), as well as gift card emails you ask us to send (including the recipient's email address, your sender name and message). It acts as a processor under contract and may not use that content for its own purposes.
- 6.5
Courts and regulators, on receipt of a legally effective demand. We check the demand's validity and scope, disclose only the narrowest data actually required, and notify you unless prohibited by law. We publish counts of such demands in a transparency report.
- 6.6
Prism task classification. When a request goes through Prism to choose a model (using auto, or a custom Prism model you created), we send the first 12,000 characters or fewer of your latest message to a third-party task classification service, TypeSafe's Jev model (possibly relayed through OpenRouter), to judge the task type and difficulty and to decide or record which model handles it. That text is used only for that one judgement and we do not store it ourselves; what we store is only the resulting category and probability figures. Requests that specify a concrete model are not sent.
- 6.7
Human verification (Cloudflare Turnstile). When you request a sign-in code or a phone verification code on the website, we use Cloudflare Turnstile to confirm the request comes from a person rather than a script. It receives your IP address and technical characteristics of your browser and device; it does not receive your email address or anything you type. Cloudflare also provides this site's DNS and some of its network routes. It acts as a processor. When it cannot load for you, the local check below completes the verification instead, involving no third party.
- 6.8
Local verification checks. To complete the checks above, we run a piece of our own detection code in your browser. It collects technical characteristics of your browser and device (rendering results, font and engine characteristics, and similar) and returns them encrypted — the verification code you type is likewise transmitted encrypted, so every layer in between sees ciphertext only. This information is used for that single decision; what we keep is only the verdict, your network origin, and a non-reversible digest of device characteristics, retained for 30 days and then deleted automatically, used to detect bulk sign-ups and analyse attacks. It is not linked to your usage content or used for anything else.
- 6.9
SMS provider (Alibaba Cloud Computing Co., Ltd.). When you bind or change a mobile number, or sign in with one, we send the verification code to your phone through Alibaba Cloud's SMS service, which receives your number and the code. It acts as a processor.
- 6.10
GitHub (GitHub, Inc.). If you choose to sign in with GitHub, the sign-in passes through GitHub, which will know that you are signing in to the Service; we do not provide it with any of your data from the Service. It is an independent controller and its own privacy policy applies.
- 6.11
Couriers. When we ship physical gift cards, the courier receives the recipient's name, phone number and address for delivery. It is an independent controller and its own privacy policy applies.
- 6.12
That is the complete list; there are no other recipients.
7Cross-border transfers
- 7.1
The service is offered worldwide and some model providers sit outside mainland China. When you select a model served from abroad, your request content is transmitted to that provider's jurisdiction.
- 7.2
Users in mainland China may use only models marked as available there (see section 4 of the Terms); inference for those models is performed within the mainland.
- 7.3
Account and transaction data are stored in the database of the service region. Where a transfer crosses borders we complete the assessment and notification duties applicable law requires.
- 7.4
When a request goes through Prism to choose a model (using auto, or a custom Prism model you created), the text used for task classification under section 6.5 (the first 12,000 characters or fewer of your latest message) is sent for processing to TypeSafe, outside mainland China (possibly relayed through OpenRouter). This applies to users in mainland China too, regardless of whether the model that finally handles the request is available there; "inference is performed within the mainland" in section 7.2 refers to the model inference itself. Requests that specify a concrete model are not sent.
8Retention
- 8.1
Request and response bodies: not retained. The exceptions are Responses session state, video job records and generated media files, and files you deliberately save to the asset library; see the lines below.
- 8.2
Responses session state: created on every `/v1/responses` call, kept for at most 5 hours, then deleted automatically.
- 8.3
Video job records (including prompts): currently kept for the life of the account, deleted immediately when you delete a finished job, and deleted on closure. Generated image and video files: deleted automatically after 7 days; console images that couldn't be delivered to your browser: deleted automatically after 6 hours.
- 8.4
Asset library files: deleted automatically 30 days after last use; deleted immediately when you delete them; reclaimed for unpaid storage as set out in the Balance and Billing Terms. Deleted together with the account on closure.
- 8.5
Technical logs: the IP address and user agent recorded on sign-in sessions are deleted automatically after 30 days. The source IP address recorded on API calls is likewise erased after 30 days; the call record itself, including the identifier of the key that made it, is then kept as usage metadata under section 8.6. Sign-up source, checkout, redemption-code claim and account audit records also keep the IP address of that event (checkout also keeps the user agent, and sign-up source keeps an irreversible digest of it; redemption-code claims also keep the network derived from the IP address, any review flag and the review outcome) for abuse prevention, payment risk control and reconciliation; these currently have no separate deletion period and are kept with the record they belong to.
- 8.6
Usage metadata: kept while the account exists so you can query and reconcile it. On closure, handled per section 10. Call records also carry a client category inferred from the User-Agent (for example Claude Code or Codex), kept with the call record under this section; call records do not store the User-Agent string itself.
- 8.7
Transaction and ledger records: retained 10 years from the accounting date, as financial and tax law requires.
- 8.8
Invoice files: once issued, sent as an email attachment to the address you gave when requesting the invoice (or your account email if none), and downloadable at any time under Billing → Invoices in the console; download links work only for you and expire after a few minutes. Invoice files are transaction records and are retained 10 years from the issue date, as financial and tax law requires; a file voided because it was issued in error is retained too, but no longer shown or sent to you.
- 8.9
Receipts: after each payment we issue a receipt, sent as an email attachment (PDF) to your account email and listed under Billing → Receipts in the console. A receipt is a snapshot taken when it is issued; it records your email address, what you bought, the amount, payment method, order number and dates. It is a transaction record and is kept for 10 years together with other transaction records; voided receipts (including those voided automatically after an order is refunded) are kept too and marked as void. The view link in the receipt email opens without signing in, so that you can pass it to whoever handles your expenses: anyone who has the link can see that receipt, so share it only with people who need it.
- 8.10
Desktop helper sign-in requests: the IP address and user agent recorded when a sign-in starts are kept with that request, which expires after 10 minutes; expired requests are deleted in full by a scheduled job.
- 8.11
Passkeys: deleted immediately when you remove them in the console, and deleted with your other credentials on closure. Passkey records hold no IP address or user agent.
- 8.12
Account data: kept while the account exists, deleted within 30 days of closure.
- 8.13
Mobile number: kept while the account exists; you can change or remove it in the console (if your stated location is mainland China, change that first). Deleted with your account data on closure. Numbers in SMS send records are masked after 180 days; verification code records are deleted after 7 days.
- 8.14
Shipping details for physical cards: name, phone number and street address are deleted 30 days after delivery is confirmed, keeping only province and city for statistics; if delivery is still unconfirmed 60 days after dispatch they are deleted likewise. They are also deleted once an order is cancelled or a return is completed.
- 8.15
Gift card recipient email and message: 30 days after a gift card is claimed, refunded or voided, the recipient's email address is erased from the record. The gift card order itself is a transaction record and is kept as such.
- 8.16
Partner applications: kept while the application is being handled and for as long as the partnership lasts. After an application is withdrawn or declined it is kept for 12 months so we can handle a repeat application, then deleted together with the contact details and self-description. Records of partnerships that have ended are currently kept with the account.
9Your rights
- 9.1
Access and export: the console exports your full usage detail and invoices as CSV and JSON at any time. No request, no waiting.
- 9.2
Correction: account details are editable in the console.
- 9.3
Deletion and closure: see the next section.
- 9.4
Withdrawing consent: you can switch off marketing notices, disable pay-as-you-go and revoke API keys at any time.
- 9.5
Complaints: if you think we have handled your data improperly, write to privacy@agiplan.dev. We respond within 15 working days. You are also entitled to complain to your supervisory authority.
10What happens when you close your account
- 10.1
How to request closure: self-service account closure in the console is planned; at present, please email support@agiplan.dev from your account email and we process closure manually under the rules below.
- 10.2
Erased outright: email address, mobile number, sign-in credentials (including passkeys and any GitHub connection), stated location, the invoicing details saved in the console (the billing name, tax number and recipient email pre-filled for your next request), every API key, technical logs. Within 30 days, with written confirmation once done.
- 10.3
Not erased, but detached from you: transaction records, balance ledger, usage metering records. Invoices already issued cannot be erased: an invoice is a tax document, so the billing name and tax number on it, and the invoice file itself, must be kept for 10 years from the issue date as the law requires, and are deleted when that period ends. Until then they are detached from your account and used only for tax and accounting checks.
- 10.4
Rationale. These three categories are append-only in our database — they cannot be modified or deleted, as a precondition for an auditable ledger.
- 10.5
What detaching means. The user identifier in those records is replaced with an irreversible anonymous identifier and direct identifiers such as the email are cleared. Afterwards nothing in those records points back to you, and we ourselves cannot re-associate them.
11Security
- 11.1
TLS end to end. The database sits on a private network with no public exposure.
- 11.2
API keys are stored as SHA-256 digests; the plaintext is shown once at creation and cannot be recovered afterwards, by us included. Keys can be rotated, and the old key stays valid for a 24-hour grace period so a rotation doesn't cut you off mid-deploy.
- 11.3
Low-entropy secrets such as sign-in credentials are stored with salted argon2id. Using different algorithms for the two is deliberate: high-entropy keys must be verifiable by constant-time lookup, low-entropy secrets must resist brute force.
- 11.4
Passkey sign-in follows the WebAuthn standard: we store only the public key, your device signs a single-use random challenge at sign-in, and the signature is bound to the agiplan.dev domain — a look-alike site cannot obtain a signature that works here.
- 11.5
Internal access follows least privilege, and any operation touching user data is written to an immutable audit log.
12Security incidents
- 12.1
If an incident could affect your personal data we notify affected users within 72 hours of confirming it, describing what happened, the likely impact, what we have done and what you can do.
- 12.2
For incidents affecting more than 1% of users we publish a signed post-mortem within 30 days, with a timeline and remediation items.
- 12.3
We will not delay notification on the grounds that "we have no evidence the data was misused".
13Children
- 13.1
The service is not directed at children under 14. If we learn we have collected a child's personal data we delete it immediately.
- 13.2
Users aged 14 to 18 should use the service with the consent of a parent or guardian.
14Changes to this policy
- 14.1
Changes are marked with the update date at the top of the page.
- 14.2
Material changes that broaden collection, add a category of recipient or extend retention take effect 30 calendar days after we notify you by email, and until then you may close your account and receive a pro-rata refund.
- 14.3
We keep every historical version of this policy publicly available.
Privacy questions: privacy@agiplan.dev. This is a draft, pending review by qualified counsel.