Loading...
Loading...
Compare original and translation side by side
<objective>Routing note: For ambiguous user intents, use the shared clarification templates in references/intent-clarification.md.
<objective>路由说明:如果用户意图不明确,请使用references/intent-clarification.md中共享的意图澄清模板。
TFY_BASE_URLTFY_API_KEYTFY_BASE_URLTFY_API_KEYstatusaccess-tokensdeployworkspacesstatusaccess-tokensdeployworkspacesecho "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"Do you already have a TrueFoundry account? If yes, I'll help you configure credentials. If not, I'll walk you through creating one.
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"你是否已经拥有TrueFoundry账号?如果有,我会帮你配置凭证。如果没有,我会带你一步步完成账号创建。
tfy registertfyuv run --from truefoundry tfy registerIMPORTANT:is fully interactive — it requires terminal input. Let the user drive this step. Do not attempt to pipe or automate the prompts.tfy register
tfy registertfyuv run --from truefoundry tfy register重要提示:是完全交互式的命令,需要终端输入,请让用户自主完成这一步,不要尝试管道传输或者自动填写提示内容。tfy register
acme-aiacme-aihttps://acme-ai.truefoundry.cloudYour TrueFoundry tenant is ready at. Next, create your first API key:<tenant-url>
- Open
in your browser<tenant-url>- Go to Settings → Access → Personal Access Tokens → Generate New Token
- Copy the token — you'll need it in the next step
https://acme-ai.truefoundry.cloud你的TrueFoundry租户已准备就绪,地址是。 接下来创建你的第一个API密钥:<tenant-url>
- 在浏览器中打开
<tenant-url>- 进入 设置 → 访问控制 → 个人访问令牌 → 生成新令牌
- 复制令牌,下一步会用到
export TFY_BASE_URL="https://your-org.truefoundry.cloud"
export TFY_API_KEY="tfy-..."
export TFY_HOST="${TFY_BASE_URL}"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-...
EOFSecurity: Never commitfiles with API keys to Git. Ensure.envis in.env..gitignore
cat > .env << 'EOF'
TFY_BASE_URL=https://your-org.truefoundry.cloud
TFY_API_KEY=tfy-...
EOF安全提示: 永远不要把包含API密钥的文件提交到Git仓库,确保.env已经添加到.env中。.gitignore
tfy --version 2>/dev/null || echo "CLI not installed"pip install 'truefoundry==0.5.0'TFY_API_KEYTFY_HOSTexport TFY_HOST="${TFY_HOST:-${TFY_BASE_URL%/}}"tfy --version 2>/dev/null || echo "CLI not installed"pip install 'truefoundry==0.5.0'TFY_API_KEYTFY_HOSTexport TFY_HOST="${TFY_HOST:-${TFY_BASE_URL%/}}"TFY_API_SHscripts/tfy-api.shreferences/tfy-api-setup.md~/.claude/skills/truefoundry-onboarding/scripts/tfy-api.sh GET '/api/svc/v1/workspaces?limit=1'TrueFoundry Status:
- Base URL: https://your-org.truefoundry.cloud ✓
- API Key: configured ✓
- Connection: OK ✓
You're all set!TFY_API_SHscripts/tfy-api.shreferences/tfy-api-setup.md~/.claude/skills/truefoundry-onboarding/scripts/tfy-api.sh GET '/api/svc/v1/workspaces?limit=1'TrueFoundry Status:
- Base URL: https://your-org.truefoundry.cloud ✓
- API Key: configured ✓
- Connection: OK ✓
You're all set!</instructions>You're connected to TrueFoundry! Here's what you can do next:Deploy & Run
- Deploy a service →
skilldeploy- Deploy an LLM →
skillllm-deploy- Run a batch job →
skilljobs- Launch a notebook →
skillnotebooksManage
- List workspaces →
skillworkspaces- View running apps →
skillapplications- Check logs →
skilllogsOptional add-on: For AI Gateway features (LLM routing, rate limiting, guardrails), install the gateway skills:npx skills add truefoundry/tfy-gateway-skillsWhat would you like to do?
tfy registerTFY_BASE_URLTFY_API_KEY.env</instructions>你已成功连接到TrueFoundry!你可以选择以下后续操作:部署与运行
- 部署服务 → 使用
技能deploy- 部署大模型 → 使用
技能llm-deploy- 运行批量任务 → 使用
技能jobs- 启动notebook → 使用
技能notebooks管理操作
- 列出工作区 → 使用
技能workspaces- 查看运行中的应用 → 使用
技能applications- 查看日志 → 使用
技能logs可选扩展: 如果需要使用AI网关功能(LLM路由、限流、防护规则),可以安装网关技能:npx skills add truefoundry/tfy-gateway-skills你想要进行什么操作?
tfy registerTFY_BASE_URLTFY_API_KEY.envtfy registertfy registerIf 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.如果tfy CLI未安装:
uv run --from truefoundry tfy register
# 或者:pip install 'truefoundry==0.5.0' && tfy register
如果无法访问注册服务:
检查到https://registration.truefoundry.com的网络连通性
如果出现字段校验错误(例如租户名称已被占用、邮箱格式无效):
CLI会仅重试失败字段,请按照提示操作
如果CLI提示需要CAPTCHA或者人机验证:
等待浏览器打开,在浏览器中完成验证即可。
如果浏览器没有自动打开,将CLI展示的URL复制到浏览器中访问即可。Check spam/junk folder. Try registering again with the same email.
If the problem persists, contact support@truefoundry.com.检查垃圾邮件文件夹,尝试使用相同邮箱重新注册。
如果问题仍然存在,请联系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-keyAPI密钥无效或者已过期,请生成新的密钥:
1. 在浏览器中打开你的租户URL
2. 进入设置 → API密钥 → 生成新密钥
3. 用新值更新TFY_API_KEY
参考文档:https://docs.truefoundry.com/docs/generate-api-keyCannot reach TFY_BASE_URL. Check:
- URL is correct (include https://)
- Network/VPN is connected
- No trailing slash in the URL无法访问TFY_BASE_URL,请检查:
- URL填写正确(包含https://)
- 网络/VPN连接正常
- URL末尾没有多余的斜杠.env.envThe .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`..env文件必须放在当前工作目录下。
变量名必须完全匹配:TFY_BASE_URL、TFY_API_KEY(值不要加引号)。
tfy-api.sh脚本会自动解析.env文件,永远不要执行`source .env`命令。When using tfy CLI with TFY_API_KEY, TFY_HOST is also required:
export TFY_HOST="${TFY_HOST:-${TFY_BASE_URL%/}}"使用带TFY_API_KEY的tfy CLI时,必须同时配置TFY_HOST:
export TFY_HOST="${TFY_HOST:-${TFY_BASE_URL%/}}"statusaccess-tokensdeployworkspacesdocsstatusaccess-tokensdeployworkspacesdocs