Bankr Dev - Safety & Access Control
БесплатноБез исполняемых скриптовНе проверенThis skill should be used when building secure Bankr integrations, implementing API key management, configuring access controls, setting up dedicated agent…
от BankrBot★ 88 звёзд на GitHubОб этом скилле
Safety & Access Control
Security patterns and best practices for Bankr API integrations.
API Key Capability Flags
Each API key has independent toggles managed at bankr.bot/api:
| Flag | Controls | Default |
|---|---|---|
agentApiEnabled |
/agent/* endpoints |
false |
llmGatewayEnabled |
LLM Gateway at llm.bankr.bot |
false |
readOnly |
Restricts agent to read-only tools | false |
Separate Agent & LLM Keys
| Config | Agent API Key | LLM Gateway Key |
|---|---|---|
| Env var | BANKR_API_KEY |
BANKR_LLM_KEY (falls back to API key) |
| CLI config | apiKey |
llmKey (falls back to apiKey) |
Read-Only Keys
When readOnly: true:
/agent/promptworks but only read tools are available/agent/signreturns 403/agent/submitreturns 403
// Handle read-only 403 errors
const response = await fetch(`${API_URL}/agent/sign`, { ... });
if (response.status === 403) {
const error = await response.json();
// error.message: "This API key has read-only access..."
}
IP Whitelisting
// Requests from non-whitelisted IPs get 403
// Configure allowedIps at bankr.bot/api
const response = await fetch(`${API_URL}/agent/prompt`, { ... });
if (response.status === 403) {
const error = await response.json();
// error.message: "IP address not allowed for this API key"
}
Dedicated Agent Wallet
For autonomous agents, create a separate Bankr account:
- Sign up at bankr.bot/api with a different email
- Generate an API key with Agent API enabled
- Configure access controls (readOnly, allowedIps)
- Fund with limited amounts
Access Control Combinations
| Use Case | readOnly | allowedIps | Funding |
|---|---|---|---|
| Monitoring bot | Yes | Yes (server IP) | None |
| Trading bot (server) | No | Yes (server IP) | Limited |
| Development/testing | No | No | Minimal |
| Research agent | Yes | No | None |
Rate Limits
| Tier | Daily Limit |
|---|---|
| Standard | 100 messages/day |
| Bankr Club | 1,000 messages/day |
| Custom | Set per API key |
// Handle 429 rate limit responses
const response = await fetch(`${API_URL}/agent/prompt`, { ... });
if (response.status === 429) {
const error = await response.json();
// error.resetAt: Unix timestamp when counter resets
// error.limit: Daily limit
// error.used: Messages used
const retryAfter = error.resetAt - Date.now();
}
Key Management Patterns
// Always use environment variables
const API_KEY = process.env.BANKR_API_KEY;
const LLM_KEY = process.env.BANKR_LLM_KEY || API_KEY;
if (!API_KEY) {
throw new Error("BANKR_API_KEY not set. Get one at https://bankr.bot/api");
}
Storage rules:
- Environment variables for server-side agents and CI/CD
~/.bankr/config.jsonfor local development (CLI manages this)- Never commit keys to source control
- Add
~/.bankr/,.envto.gitignore - Rotate periodically, revoke immediately if compromised
Transaction Safety
/agent/submitexecutes immediately with no confirmation prompt- Always use
waitForConfirmation: truefor important transactions - Test with small amounts on Base/Polygon first
- Verify calldata source for arbitrary transactions
Related Skills
bankr-client-patterns- Client setup with error handlingbankr-api-basics- API fundamentalsbankr-sign-submit-api- Sync endpoints that need extra caution
Установить Bankr Dev - Safety & Access Control в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Bankr Dev - Safety & Access Control?
This skill should be used when building secure Bankr integrations, implementing API key management, configuring access controls, setting up dedicated agent wallets, or handling rate limits and security best practices in Bankr API projects.
Как установить скилл Bankr Dev - Safety & Access Control?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Bankr Dev - Safety & Access Control запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic