# Administrator guide ## Initial owner The first installation uses `/install` to connect SQLite or MySQL, run the migrations, and create one owner account and company. The setup lock is stored in the database; a second owner cannot be created through the initial setup flow after completion. Sign in and open the workspace settings. Enroll two-step sign-in from account security and save the recovery codes offline. Password recovery revokes sessions and clears two-step enrollment, so enroll the authenticator again after a reset. ## Company access Company records are separated by company ID. Invite or add only people who need workspace access and use the least powerful available role. Owners can manage company settings and connected services. Staff access is limited by the role and, for helpdesk tickets, assignment rules. Review ownership before removing a user. ## Providers and spending Owners connect company provider credentials in the workspace. Credentials are encrypted in the database and are not included in company exports. Test the connection before assigning a model. Only models discovered for that provider are offered for selection; model capabilities depend on the provider adapter. Operator-paid usage requires server-side provider settings, model allowlists, and per-million-token prices. Keep those settings private. Credit reservations are estimates and settle against measured token usage; provider invoices may differ. Review usage and pricing regularly. BYOK requests are billed by the provider to the account that owns the credential and do not use the platform credit ledger. ## Billing operations Configure Stripe secrets and webhook signing secret in the server environment. Add subscription plans with Stripe recurring price IDs and credit packages in platform settings. The webhook endpoint is `/hooks/stripe`; configure Stripe to send checkout completion, asynchronous checkout payment success, invoice paid, and subscription update or deletion events. Platform administrators can review recorded payments, refund eligible Stripe payments, and edit plans. A credit package cannot be refunded after any credits from that package have been spent. This release does not include PayPal, tax calculation, coupons, affiliate payouts, a hosted customer portal, or plan-limit enforcement. Do not advertise those as available. ## Data controls Company owners can export company records as JSON without connection secrets. Account deletion requires password confirmation and removes the owner's workspace data. Before enabling a production service, document the operator's retention policy and confirm that database backups, file backups, and restored copies follow it. ## Branding and public pages Platform administrators can change the platform name, tagline, colors, theme, typeface, density, corner style, layout direction, logo and favicon URLs, public page copy, contact address, footer, and legal text. Text is displayed as plain text. Legal copy must be supplied and reviewed by the operator. Custom-domain ownership must be verified before activation; DNS routing and TLS remain deployment tasks. ## Maintenance checklist - Keep the application key, database credentials, provider keys, payment secrets, and webhook secrets private. - Enforce HTTPS and secure session cookies. - Restrict platform administrator accounts and require two-step sign-in. - Review queue failures, provider spend, and integration delivery histories. - Back up the database and private storage, then test a restore. - Review access, retention, and deletion requests under the operator's own policies.