Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/tray-tecnologia/tray-api-ai-plugin/setupgit clone --depth 1 https://github.com/tray-tecnologia/tray-api-ai-pluginWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/tray-tecnologia/tray-api-ai-plugin/setup)<a href="https://agentmods.dev/commands/tray-tecnologia/tray-api-ai-plugin/setup"><img src="https://agentmods.dev/badge/commands/tray-tecnologia/tray-api-ai-plugin/setup.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00017 | $0.00476 |
| Opus 5 | $0.00009 | $0.00238 |
| Sonnet 5 | $0.00003 | $0.00095 |
| Haiku 4.5 | $0.00002 | $0.00048 |
Grade A, and why
tray-setup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Configuração Rápida — API Tray
Checklist de Pré-requisitos
Antes de começar, confirme que você possui:
- consumer_key — chave do seu aplicativo Tray
- consumer_secret — segredo do seu aplicativo Tray
- Domínio da loja — URL da loja que será integrada
Se não possui, crie seu aplicativo em https://developers.tray.com.br seguindo a seção "Criando seu Aplicativo".
Fluxo de Autorização (OAuth 2.0)
Passo 1: Redirecione o lojista
https://{dominio_loja}/auth.php?response_type=code&consumer_key={sua_consumer_key}&callback={sua_callback_url}
Passo 2: Receba o callback
Sua URL de callback receberá: code, adm_user, store, api_address
Passo 3: Troque por tokens
POST https://{api_address}/auth
Body: { "consumer_key": "xxx", "consumer_secret": "xxx", "code": "xxx" }
Resposta: access_token (expira em 3h) + refresh_token (expira em 30 dias)
Teste Inicial
Faça sua primeira chamada para validar:
GET https://{api_address}/store?access_token={seu_access_token}
Se retornar os dados da loja, a integração está funcionando.
Lembrete Importante
- O
access_tokenexpira em 3 horas — implemente renovação automática - Use
GET /auth?refresh_token={token}para renovar - Armazene tokens em variáveis de ambiente, nunca hardcoded
- Limites: 180 req/min, 10.000 req/dia
Próximos Passos
- Configure webhooks (via ticket de suporte Tray)
- Explore os endpoints de produtos (
GET /products) - Consulte
/tray-api:referencia-apipara ver todos os endpoints disponíveis
Documentação completa: https://developers.tray.com.br
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 64 lines · 17 tokens per session scan A c45e24e6e1e1
tray-setup is a command published in the GitHub repository tray-tecnologia/tray-api-ai-plugin (15 stars, last pushed 23d ago), licensed MIT. It adds 17 tokens to every session and 476 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
test-e2e
Write end-to-end tests for critical user journeys.
test-integration
Write integration tests for component boundaries.
newpkg
Generate new package with Nx.
export
Design public API exports.
config-set
Set a config value in the active writable Gnosys store.
add
Add a new memory from raw text or an existing file path.