mirror of
https://github.com/Louis-CFM/coucou.git
synced 2026-12-07 07:32:35 +09:00
The Cloud is now sold: Free (everything on the Mac, unchanged) and « Cloud · your key » at 9 €/month (the AI on the user's own Anthropic key). Solo, Pro and Max are listed as coming, until the credit offers open. Worker (billing.ts): the offers in one place (GET /v1/plans, public, so a price changes without an app update); Stripe Checkout and the customer portal, opened in the browser (the card never touches Coucou); the signed Stripe webhook keeps the subscription's state; a user's Mochis run in the Cloud only with an active subscription (past_due included while Stripe retries) or a login in COMP_LOGINS (Louis-CFM). Without STRIPE_SECRET_KEY, billing is off. Under the VAT franchise: no VAT, the invoice footer says « TVA non applicable, article 293 B du CGI »; STRIPE_TAX turns Stripe Tax on. The new user columns are added by the Worker itself. scripts/stripe-setup.mjs makes the price, the portal and the webhook, and pipes the webhook's secret straight into wrangler. brain: `cloud subscribe`, `cloud billing` (--json gives the URL to the app); `cloud status` carries the offer and the offers. App: the offers view (CloudPlans.swift, for the onboarding too), a « Choose your offer » step in the Cloud setup, the offer on the account card (renews / ends / payment failed, Manage, See the offers); the switch to move a Mochi needs the offer. 28 strings in the 16 languages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
28 lines
958 B
TOML
28 lines
958 B
TOML
# Coucou Cloud: runs the Mochis while the Mac is off, on Claude Managed Agents.
|
|
# Deploy: see README.md. Secrets (never in git): GITHUB_APP_PRIVATE_KEY, GITHUB_WEBHOOK_SECRET, KEY_ENCRYPTION_KEY,
|
|
# and for billing STRIPE_SECRET_KEY, STRIPE_WEBHOOK_SECRET (without them, billing is off).
|
|
name = "coucou-cloud"
|
|
main = "src/index.ts"
|
|
compatibility_date = "2026-09-01"
|
|
workers_dev = true
|
|
|
|
[vars]
|
|
# The GitHub App "Coucou Cloud" (Settings → Developer settings → GitHub Apps).
|
|
GITHUB_APP_ID = "5985283"
|
|
# On every Stripe invoice while Coucou is under the VAT franchise.
|
|
INVOICE_FOOTER = "TVA non applicable, article 293 B du CGI"
|
|
# The Cloud is offered to these GitHub logins (no subscription needed).
|
|
COMP_LOGINS = "Louis-CFM"
|
|
|
|
[[d1_databases]]
|
|
binding = "DB"
|
|
database_name = "coucou-cloud"
|
|
database_id = "8b93e57d-5bfb-4879-a09b-49e9483c720b"
|
|
|
|
# Every minute: collect the runs that finished.
|
|
[triggers]
|
|
crons = ["* * * * *"]
|
|
|
|
[observability]
|
|
enabled = false
|