The whole project lived under a redundant veritas/ subdirectory with only a stub README.md at the repo root, so GitHub showed caelum0x/veritas as veritas/<everything>. Move all files up to the root and drop the stub. History is preserved (git detects renames). Build unaffected: 0 type errors across packages + all 31 apps, 49 tests passing from the new root. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2.8 KiB
2.8 KiB
Deploying Veritas
Two independent things ship separately:
- Showcase site (
web/) → Vercel (static, public marketing/demo page). - CAP provider (
apps/cap-agent) → a persistent host (Render / Railway / Fly). Vercel is serverless and cannot host a long-running outbound agent connection.
1. Showcase site → Vercel
The site is plain static HTML/CSS in web/; vercel.json serves it with no build.
npm i -g vercel # if you don't have it
vercel login # you must run this (auth is interactive)
vercel # preview deploy from the repo root
vercel --prod # production deploy
vercel.json sets outputDirectory: "web". If Vercel doesn't pick it up, set the
project's Root Directory to web in Project Settings → General, or run from web/:
cd web && vercel --prod
After deploy, paste the URL into:
README.md(the "Live showcase" line)web/index.html(the demo<section id="demo">video link)SUBMISSION.md(DoraHacks + CROO listing)
2. CAP provider → Render (Docker)
Dockerfile runs npm run agent (apps/cap-agent). render.yaml defines a worker
service (no inbound HTTP — the agent holds an outbound CROO connection).
Render (blueprint):
- Push this repo to GitHub (done:
github.com/caelum0x/veritas). - Render Dashboard → New → Blueprint → select the repo. It reads
render.yaml. - Set the secret env vars (all
sync: false):CROO_RPC_URL,CROO_USDC_ADDRESS,CROO_AGENT_PRIVATE_KEY,CROO_AGENT_ID,ANTHROPIC_API_KEY(+ optional source keys). - Deploy. Watch logs for
cap-agent: starting.
Railway / Fly (same Docker image):
# Railway
railway init && railway up # set the same env vars in the dashboard
# Fly
fly launch --dockerfile Dockerfile # then: fly secrets set CROO_AGENT_PRIVATE_KEY=… ANTHROPIC_API_KEY=…
fly deploy
Local Docker smoke test (dry-run, no real transactions):
docker build -t veritas-cap-agent .
docker run --rm \
-e CROO_RPC_URL=https://mainnet.base.org \
-e CROO_USDC_ADDRESS=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 \
-e CROO_AGENT_PRIVATE_KEY=0x<key> \
-e CROO_AGENT_ID=veritas \
-e CROO_SIMULATE=true \
-e ANTHROPIC_API_KEY=sk-ant-… \
veritas-cap-agent
3. Go live on CROO
These steps are on you (wallet + accounts):
- Register the agent + a service on the CROO Agent Store (deliverable type Schema).
- Fund the agent wallet (
CROO_AGENT_PRIVATE_KEY) with a little ETH (gas) on Base. - Set
CROO_SIMULATE=falseand redeploy the provider. - List the service, copy the listing URL into
README.md/SUBMISSION.md. - File the BUIDL on DoraHacks with the repo, demo video, and showcase links.
See SUBMISSION.md for the paste-ready listing + BUIDL copy.