TCG API · api.thatcomputerguy26.org

Self-hosted FastAPI + Ollama gateway powering Gary Amick's TCG Solutions sites. Free for the consumer-facing endpoints; admin tier requires a token.

● Checking… — endpoints — categories No 3rd-party LLM calls — all AI runs on Gary's local Ollama CORS allowlisted to TCG-owned origins

Public

No auth. Anyone can call. CORS gates which origins. Use these from your Netlify sites.

AI & Proxy

Local Ollama chat (gemma3 / llama3) and 3rd-party API proxies (weather, HN, Reddit, ipify, DNS). Cached server-side.

App-token

Authenticated app-tier endpoints used by signed-in TCG customers and embedded widgets.

Admin

Gary-only. Bearer admin token. Includes the new /api/tools/v2/* 50-tool router (network/system/files/web/data).

Quick examples

Get site stats
curl https://api.thatcomputerguy26.org/api/public/stats
Local AI chat
curl -X POST https://api.thatcomputerguy26.org/api/public/ai/ask \
  -H "Content-Type: application/json" \
  -d '{"prompt":"What is the Indiana lemon law?"}'
Look up an IP
curl https://api.thatcomputerguy26.org/api/proxy/ipgeo/8.8.8.8
DNS-over-HTTPS
curl 'https://api.thatcomputerguy26.org/api/proxy/dns?name=example.com&type=A'
Browser SDK
<script src="https://api.thatcomputerguy26.org/static/tcg-api.js"></script>
<script>TCG.chat({message:"hi"}).then(r => console.log(r.reply))</script>