Loading...
Loading...
Manages TrueFoundry personal access tokens (PATs). List, create, and delete tokens for API auth and CI/CD.
npx skill4agent add truefoundry/tfy-deploy-skills truefoundry-access-tokens<objective>Routing note: For ambiguous user intents, use the shared clarification templates in references/intent-clarification.md.
Security Policy: Credential Handling
- The agent MUST NOT repeat, store, or log token values in its own responses.
- After creating a token, direct the user to copy the value from the API response output above — do not re-display it.
- Never include token values in summaries, follow-up messages, or any other output.
statusTFY_BASE_URLTFY_API_KEYuv run tfy registerTFY_API_SHscripts/tfy-api.shreferences/tfy-api-setup.mdtfy_access_tokens_list()TFY_API_SH=~/.claude/skills/truefoundry-access-tokens/scripts/tfy-api.sh
# List all personal access tokens
$TFY_API_SH GET /api/svc/v1/personal-access-tokensPersonal Access Tokens:
| Name | ID | Created At | Expires At |
|---------------|----------|-------------|-------------|
| ci-pipeline | pat-abc | 2025-01-15 | 2025-07-15 |
| dev-local | pat-def | 2025-03-01 | Never |tfy_access_tokens_create(payload={"name": "my-token"})# Create a new personal access token
$TFY_API_SH POST /api/svc/v1/personal-access-tokens '{"name":"my-token"}'Security: Token Display Policy
- Default to showing only a masked preview (for example: first 4 + last 4 characters).
- Show the full token only after explicit user confirmation that they are ready to copy it now.
- If a full token is shown, show it only once, in a minimal response, and never repeat it in summaries/follow-up messages.
- The agent must NEVER store, log, or re-display the token value after the initial one-time reveal.
- If the user asks to see the token again later, instruct them to create a new token.
Token created successfully!
Name: my-token
Token (masked): tfy_****...****
If user explicitly confirms they are ready to copy it:
One-time token: <full value from API response>
⚠️ Save this token NOW — it will not be shown again.
Store it in a password manager, CI/CD secret store, or TrueFoundry secret group.
Never commit tokens to Git or share them in plain text.tfy_access_tokens_delete(id="TOKEN_ID")# Delete a personal access token
$TFY_API_SH DELETE /api/svc/v1/personal-access-tokens/TOKEN_IDgitopsdeploystatussecretsreferences/api-endpoints.mdCannot manage access tokens. Check your API key permissions.Token ID not found. List tokens first to find the correct ID.A token with this name already exists. Use a different name.If services fail after token deletion, they were using the deleted token.
Create a new token and update the affected services/pipelines.Token values are only shown at creation time. If lost, delete the old token
and create a new one, then update all services that used the old token.