Start & Economics · 1-Click & Zero-Egress · Full AI Markdown Manual (llms-full.txt) · OpenAPI 3.1 Spec
TRC Migration Guides — Switch Your Cloud, DB, AI APIs & Storage in Under 5 Minutes
Step-by-step technical guides, copy-paste terminal commands, and database restore scripts to replace Vercel, Supabase, AWS S3, Render, and fragmented OpenAI/Anthropic accounts with one sovereign TRC stack.
- TCO Reduction: 60% – 85% Savings — Replaces $150+/mo multi-SaaS bills with $20/mo Sovereign Pro
- Database Migration: Native pg_restore — Hardware-isolated PostgreSQL 16 + pgvector on loopback
- AI Gateway Migration: 1-Line baseURL Swap — OpenAI SDK compatible · Automatic 50% DeepSeek off-peak discounts
- Cloud Storage Vault: Zero Egress Fees — 50 GB Free ($0/mo) up to 50 TB · S3/B2 streaming uploads
1. Migrate from Vercel + Supabase + Render to TRC Sovereign Cloud
Teams commonly pay separate bills for frontend hosting (Vercel $20/seat), database hosting (Supabase $25/mo), background workers (Render $25/mo), and cache (Redis Cloud $15/mo) — easily exceeding $85 to $150+/mo before bandwidth and seat costs.
TRC Sovereign Cloud Commercial Pro ($20/mo) consolidates your web apps, APIs, PostgreSQL 16 + pgvector, and Redis 7 into a single hardware-isolated enclave on dedicated AMD EPYC infrastructure, with automatic Caddy HTTP/3 TLS and zero public internet exposure on database ports.
1. Export Supabase Postgres
# Dump your existing database schema and data cleanly
pg_dump -h db.YOUR_PROJECT.supabase.co -U postgres -d postgres -F c -b -v -f supabase_migration.dump
2. Restore into TRC Sovereign Postgres
# Run from Sovereign Cloud Web Terminal (/cloud -> Terminal) or an authenticated SSH tunnel:
pg_restore -d "postgresql://user:pass@127.0.0.1:5432/main" --clean --no-acl --no-owner -v supabase_migration.dump
# Verify pgvector extension is ready
psql "postgresql://user:pass@127.0.0.1:5432/main" -c "CREATE EXTENSION IF NOT EXISTS vector;"
3. Nixpacks Build & Deploy
# 1. Connect your GitHub repository in Sovereign Cloud (/cloud -> Git & Automation)
# Nixpacks auto-detects Node.js, Python, Go, Rust, or Dockerfile builds.
# 2. Push to your main / release branch:
git push origin main
# 3. Configure environment variables in the Web Console (/cloud):
# DATABASE_URL={{Postgres.DATABASE_URL}}
# REDIS_URL={{Redis.REDIS_URL}}
# PORT=30002. Migrate from OpenAI & Anthropic SDKs to TRC Unified Gateway
Switching your existing AI agents, chatbots, and pipelines to the TRC Unified Gateway requires changing only your baseURL and passing your scoped TRC API key (trc_live_...).
Immediate Benefits: One single pre-funded wallet, automatic 50% off-peak DeepSeek discounts ($0.15/1M input vs $2.50+ on legacy models), automatic prompt cache hits ($0.003/1M), native Anthropic Messages API support, and $0-markup BYOK credentials.
Python (openai SDK)
import os
from openai import OpenAI
# 1-Line baseURL swap to route through TRC Unified Gateway
client = OpenAI(
base_url="https://api.trc.inc/api/v1/ai/deepseek",
api_key=os.environ["TRC_API_KEY"], # trc_live_...
)
# Call DeepSeek V4.1 with automatic 50% off-peak pricing
response = client.chat.completions.create(
model="deepseek-flash",
messages=[
{"role": "system", "content": "You are a senior production architect."},
{"role": "user", "content": "Analyze our infrastructure architecture."},
],
)
print(response.choices[0].message.content)
TypeScript / Node.js (OpenAI SDK)
import OpenAI from 'openai';
// Compatible with any OpenAI SDK client
const openai = new OpenAI({
baseURL: 'https://api.trc.inc/api/v1/ai/deepseek',
apiKey: process.env.TRC_API_KEY, // trc_live_...
});
const completion = await openai.chat.completions.create({
model: 'deepseek-flash',
messages: [{ role: 'user', content: 'Generate high-throughput API endpoints' }],
});
console.log(completion.choices[0].message.content);
TypeScript (Anthropic SDK)
import Anthropic from '@anthropic-ai/sdk';
// Native Anthropic Messages API passthrough
const anthropic = new Anthropic({
baseURL: 'https://api.trc.inc/api/v1/ai/anthropic',
apiKey: process.env.TRC_API_KEY, // trc_live_...
});
const response = await anthropic.messages.create({
model: 'claude-sonnet-4-6',
max_tokens: 1024,
messages: [{ role: 'user', content: 'Explain sovereign compute enclaves' }],
});
console.log(response.content[0].text);3. Migrate from AWS S3 to TRC Cloud Storage Vault
AWS S3 charges $0.023/GB/mo storage, $0.09/GB egress bandwidth fees, and complex IAM configurations.
TRC Cloud Storage Vault (backed by durable Backblaze B2 object storage) provides 50 GB free, scalable to 50 TB, with $0.00 per-GB object egress fees (distinct from Sovereign Cloud compute enclaves, which include 1–20 TB/mo of container network transfer). You can stream binary files up to 2 GB per request or generate temporary signed download URLs.
cURL / Shell (Upload up to 2 GB)
# Stream raw binary or multipart archive directly into your Cloud Vault
curl -X POST https://api.trc.inc/api/v1/storage/upload \
-H "Authorization: Bearer trc_live_YOUR_KEY" \
-H "Content-Type: application/octet-stream" \
-H "x-file-name: dataset-backup.tar.gz" \
-H "x-storage-category: dataset" \
--data-binary @dataset-backup.tar.gz
TypeScript (Download & List Files)
// Fetch files and inspect storage quota
const filesRes = await fetch('https://api.trc.inc/api/v1/storage/files', {
headers: { Authorization: `Bearer ${process.env.TRC_API_KEY}` },
});
const { files } = await filesRes.json();
console.log(`Found ${files.length} objects in Cloud Vault`);4. Migrate Creator Storefronts & Counseling to TRC Partner Pro
Platforms like Teachable, Gumroad, and booking marketplaces typically take 5% to 20% of every transaction plus monthly subscriptions.
TRC Partner Pro ($99/mo) features a strict 0% TRC platform take-rate. You keep 100% of your course, booking, and digital item revenue (paying only standard Stripe 2.9% + 30¢ processing), while gaining integrated MultiChat+ encrypted client video, AI scheduling, automated 1099-K tax packets, and custom domain landing pages.
Frequently Asked Questions
How long does a typical migration take?
Database migrations via pg_restore typically complete in 2 to 10 minutes. AI API gateway swaps take under 60 seconds (a single baseURL and API key line update in your client config).
Are database ports exposed to the public internet during or after migration?
No. PostgreSQL 16 and Redis 7 in TRC Sovereign Cloud bind strictly to loopback Unix domain sockets and 127.0.0.1 inside your private hardware enclave.
Will rotating my TRC API key interrupt other production servers?
No. TRC provisions isolated, scoped keys per machine and application installation. Revoking or rotating a key on one box never invalidates another.