From truefoundry-gateway
Guides new users through TrueFoundry account registration, email verification, credential configuration, and first API setup. Activates on phrases like 'get started', 'set up truefoundry', 'register', or missing credentials.
npx claudepluginhub truefoundry/tfy-gateway-skills --plugin truefoundry-gatewayThis skill is limited to using the following tools:
> Routing note: For ambiguous user intents, use the shared clarification templates in [references/intent-clarification.md](references/intent-clarification.md).
references/api-endpoints.mdreferences/cli-fallback.mdreferences/cluster-discovery.mdreferences/container-versions.mdreferences/gpu-reference.mdreferences/health-probes.mdreferences/intent-clarification.mdreferences/manifest-defaults.mdreferences/manifest-schema.mdreferences/prerequisites.mdreferences/resource-estimation.mdreferences/rest-api-manifest.mdreferences/tfy-api-setup.mdscripts/tfy-api.shscripts/tfy-version.shChecks TrueFoundry connection status and verifies credentials (TFY_BASE_URL, TFY_HOST, TFY_API_KEY) using Bash and tfy-api.sh. Use as preflight before platform operations like deployments.
Guides setup, configuration, Docker deployment, and usage of codex-console for automating OpenAI account registration, login, token retrieval, batch processing, and Web UI data export.
Mandates invoking relevant skills via tools before any response in coding sessions. Covers access, priorities, and adaptations for Claude Code, Copilot CLI, Gemini CLI.
Share bugs, ideas, or general feedback.
Routing note: For ambiguous user intents, use the shared clarification templates in references/intent-clarification.md.
Guide a new user from zero to a working TrueFoundry setup: account creation, credential configuration, and first successful API call.
TFY_BASE_URL, TFY_API_KEY) are missing and the user hasn't set them up beforestatus skillaccess-tokens skillworkspaces skillBefore starting the registration flow, check if the user already has credentials configured.
echo "TFY_BASE_URL: ${TFY_BASE_URL:-(not set)}"
echo "TFY_HOST: ${TFY_HOST:-(not set)}"
echo "TFY_API_KEY: ${TFY_API_KEY:+(set)}${TFY_API_KEY:-(not set)}"
[ -f .env ] && grep -c '^TFY_' .env 2>/dev/null && echo ".env has TFY_ vars" || echo "No .env with TFY_ vars"
If credentials are already set, skip to Step 5: Verify Connection.
If credentials are missing, ask the user:
Do you already have a TrueFoundry account? If yes, I'll help you configure credentials. If not, I'll walk you through creating one.
Run the TrueFoundry registration CLI:
tfy register
If tfy is not installed yet, use:
uv run --from truefoundry tfy register
IMPORTANT:
tfy registeris fully interactive — it requires terminal input. Let the user drive this step. Do not attempt to pipe or automate the prompts.
Choose account details — prompts for:
acme-ai)Confirm terms — displays links to Privacy Policy and Terms of Service; requires acceptance
Complete human verification if required — some registration servers may open a browser for CAPTCHA or similar anti-abuse checks; let the user complete that step manually
Create account — the CLI calls the TrueFoundry registration service and retries individual fields on validation errors
Email verification — user must check their inbox, click the verification link, then press Enter to continue
The CLI outputs:
https://acme-ai.truefoundry.cloud)If the registration server is configured to require CAPTCHA, the CLI may also need a browser-based verification step before registration completes. Do not try to script or bypass that step.
Tell the user:
Your TrueFoundry tenant is ready at
<tenant-url>. Next, create your first API key:
- Open
<tenant-url>in your browser- Go to Settings → Access → Personal Access Tokens → Generate New Token
- Copy the token — you'll need it in the next step
Once the user has their tenant URL and API key, set up the environment.
export TFY_BASE_URL="https://your-org.truefoundry.cloud"
export TFY_API_KEY="tfy-..."
export TFY_HOST="${TFY_BASE_URL}"
cat > .env << 'EOF'
TFY_BASE_URL=https://your-org.truefoundry.cloud
TFY_API_KEY=tfy-...
EOF
Security: Never commit
.envfiles with API keys to Git. Ensure.envis in.gitignore.
Ask the user which option they prefer, then help them set the values with their actual tenant URL and API key.
The CLI is recommended but not required — all skills fall back to the REST API.
tfy --version 2>/dev/null || echo "CLI not installed"
If not installed:
pip install 'truefoundry==0.5.0'
If TFY_API_KEY is set and the user will use CLI commands, ensure TFY_HOST is also set:
export TFY_HOST="${TFY_HOST:-${TFY_BASE_URL%/}}"
Test that credentials work with a lightweight API call. Set TFY_API_SH to the full path of this skill's scripts/tfy-api.sh. See references/tfy-api-setup.md for paths per agent.
~/.claude/skills/truefoundry-onboarding/scripts/tfy-api.sh GET '/api/svc/v1/workspaces?limit=1'
Present the result:
TrueFoundry Status:
- Base URL: https://your-org.truefoundry.cloud ✓
- API Key: configured ✓
- Connection: OK ✓
You're all set!
If the connection fails, see Troubleshooting.
After successful setup, guide the user based on what they want to do:
You're connected to TrueFoundry! Here's what you can do next:
AI Gateway
- Configure LLM routing →
ai-gatewayskill- Add safety guardrails →
guardrailsskill- Register MCP servers →
mcp-serversskillManage
- List workspaces →
workspacesskill- Check logs →
logsskillDeploy & Run (requires TrueFoundry Enterprise with a connected cluster — see https://truefoundry.com)
- Deploy services, LLMs, jobs, and notebooks via the TrueFoundry dashboard or CLI
What would you like to do?
<success_criteria>
tfy register)TFY_BASE_URL and TFY_API_KEY are configured (via env vars or .env)</success_criteria>
tfy register failsIf tfy CLI is not installed:
uv run --from truefoundry tfy register
# or: pip install 'truefoundry>=0.5.0' && tfy register
If registration service is unreachable:
Check network connectivity to https://registration.truefoundry.com
If a field validation error occurs (e.g., tenant name taken, invalid email):
The CLI will retry only the failed field — follow the prompts.
If the CLI says CAPTCHA or human verification is required:
Let it open the browser and complete the verification there.
If the browser does not open automatically, copy the URL shown by the CLI into your browser.
Check spam/junk folder. Try registering again with the same email.
If the problem persists, contact support@truefoundry.com.
API key is invalid or expired. Generate a new one:
1. Open your tenant URL in browser
2. Go to Settings → API Keys → Generate New Key
3. Update TFY_API_KEY with the new value
See: https://docs.truefoundry.com/docs/generate-api-key
Cannot reach TFY_BASE_URL. Check:
- URL is correct (include https://)
- Network/VPN is connected
- No trailing slash in the URL
.env not picked upThe .env file must be in the current working directory.
Variable names must match exactly: TFY_BASE_URL, TFY_API_KEY (no quotes around values).
The tfy-api.sh script handles .env parsing — never use `source .env`.
When using tfy CLI with TFY_API_KEY, TFY_HOST is also required:
export TFY_HOST="${TFY_HOST:-${TFY_BASE_URL%/}}"
status skill to re-verify credentials at any timeaccess-tokens skill to create additional PATsworkspaces skill to list and pick a workspacedocs skill to search TrueFoundry documentation