본문으로 건너뛰기
Skillpedia
에이전트7.0k · #13620

agent-wallet

하는 일

이 스킬은 관리자만 바꿀 수 있는 규칙으로 통제되는 AI 에이전트용 암호화폐 지갑을 설정합니다. 모든 지출은 서명 전에 정책 파일과 대조해 코드로 확인되므로, 에이전트가 조작되더라도 규칙은 지켜집니다.

사용하는 경우

  • ✓정해 둔 한도 안에서 에이전트가 자체 지갑으로 결제하게 하고 싶을 때.
  • ✓악성 메시지에 속더라도 안전한 지갑이 필요할 때.
  • ✓에이전트의 지출에 허용 주소 목록이나 비상 정지 스위치를 두고 싶을 때.

스킬 링크

https://github.com/internet-court/internet-court-skill/blob/main/vendored/chaingpt/agent-wallet/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/internet-court/internet-court-skill/blob/main/vendored/chaingpt/agent-wallet/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 에이전트에게 자체 지갑을 주되, 제가 승인한 주소로만 보낼 수 있게 해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

관리자는 암호화된 지갑과, 허용 주소나 최대 금액 같은 규칙이 담긴 정책 파일을 만듭니다. 에이전트가 보내려고 할 때마다 도구가 코드로 정책을 확인하고, 규칙 하나라도 어기면 거부합니다. 에이전트에게는 정책을 편집하는 도구가 없습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

ChainGPT Agent Wallet Skill

The agent has its own EOA wallet on every EVM chain it supports. The admin (you, in your shell) sets policies that the agent cannot violate or revoke — even if a malicious prompt convinces the LLM to try.

Threat model

The attacker's goal: prompt-inject the agent to drain its wallet to an attacker address.

The plugin's defense: the policy check is in code, not in the LLM's prompt. Every chaingpt_agent_wallet_sign_and_send call:

  1. Loads the policy file fresh from disk (no caching — admin can update mid-session).
  2. Runs checkPolicy(intent) — pure deterministic code that doesn't see the LLM's context.
  3. Refuses if any rule fails, with a clear reason the agent surfaces back to the user.

The attacker can convince the LLM to call sign_and_send(to=attacker, value=ALL) — but the tool layer refuses because attacker isn't in allowedToAddresses or value exceeds maxTxValueWei or killSwitch=true. The trust boundary is the tool code, not the LLM.

There is no MCP tool that writes the policy file. The admin edits it directly with a text editor. There is no MCP tool that reads or sets the passphrase. The passphrase lives only in the shell env var or the OS keychain — never in the keystore file, never in the LLM's context.

Setup (admin steps — done once)

The keystore passphrase resolves in this priority order:

  1. CHAINGPT_AGENT_WALLET_PASSPHRASE env var — explicit override. Best for CI / headless / power users who want zero process-list and zero keychain exposure.
  2. OS keychain — auto-managed. On macOS (Keychain via security) or Linux (libsecret via secret-tool), if no env var is set, chaingpt_agent_wallet_init generates a strong 256-bit passphrase and stores it in the keychain. You never type or remember it; the MCP server reads it back on each load.

Option A — zero-setup (macOS / Linux with a keychain) — recommended for most

# Just init — a strong passphrase is generated + stored in your OS keychain.
claude
> initialize the agent wallet

The init output tells you it used the keychain and how to export the passphrase for backup.

Option B — explicit env var (CI / headless / max control)

# Set a strong passphrase BEFORE starting the MCP server (>= 16 chars)
export CHAINGPT_AGENT_WALLET_PASSPHRASE="your-strong-passphrase-here-min-16-chars"
claude
> initialize the agent wallet

Back up the passphrase either way. Keychain entry: service=chaingpt-mcp-agent-wallet account=keystore-passphrase. Export on macOS with security find-generic-password -s chaingpt-mcp-agent-wallet -a keystore-passphrase -w. Lose it (and any backup) → the keystore is unrecoverable. There is no recovery path.

Security tradeoff of the keychain option: the secret stays out of plaintext-on-disk and out of the LLM context, but the keychain is unlocked while you're logged in — a local attacker on an unlocked session could read it. That's a much higher bar than a plaintext file and appropriate for a low-value bounded hot wallet. For zero local exposure, use Option B.

This creates two files:

File Contents Who edits it
~/.chaingpt-mcp/agent-wallet/keystore.json AES-256-GCM encrypted private key Generated once by the init tool. Never edit by hand. Back it up.
~/.chaingpt-mcp/agent-wallet/policy.json Plain JSON rules You, the admin, with a text editor. The agent has NO tool that writes this file.

Both default to ~/.chaingpt-mcp/agent-wallet/ but can be overridden via CHAINGPT_KEYSTORE_FILE and CHAINGPT_AGENT_POLICY_FILE.

Tools

Tool Mutates state? Notes
chaingpt_agent_wallet_init Creates keystore One-shot. Refuses if file exists.
chaingpt_agent_wallet_address No Returns the agent's EOA address. Use this to receive funds.
chaingpt_agent_wallet_status No Address + policy digest + kill-switch state. Run this before any signing.
chaingpt_agent_wallet_balances No Native-coin balances across requested chains.
chaingpt_agent_wallet_policy No (read-only) Shows the current policy JSON. Cannot modify it.
chaingpt_agent_wallet_sign_and_send Signs + broadcasts a tx The only tool that can move funds. Gated by policy.
chaingpt_agent_wallet_serve_ui Starts a local HTTP server Dashboard on http://127.0.0.1:8787. Read-only view.

Policy file format

Default policy.json (lazily

자주 묻는 질문

에이전트가 스스로 지출 규칙을 바꿀 수 있나요?

아니요. 에이전트가 정책 파일을 쓸 수 있는 도구는 없으며, 관리자만 직접 편집합니다.

지갑 비밀번호는 어디에 보관되나요?

지갑 파일이 아니라 셸 환경 변수나 운영체제 키체인에 보관됩니다.

결제가 규칙을 어기면 어떻게 되나요?

도구는 서명을 거부하고, 에이전트가 여러분에게 전달할 수 있는 이유를 알려 줍니다.

상세 정보

작성자의 원본 설명

Give the AI agent its own EVM wallet with admin-controlled policies the agent CANNOT bypass even under prompt injection. Encrypted keystore (AES-256-GCM, scrypt KDF), policy file the agent has no tool to write, deterministic policy gate on every signing operation, optional local HTTP dashboard. Triggers: agent wallet, give the agent a wallet, agent address, fund the agent, agent autonomy, policy gate, kill switch, agent permissions, bounded autonomy, ERC-4337 alternative, session-key alternative.

repo: internet-court/internet-court-skill

인기도

GitHub 스타
7.0k
순위
#13620
라이선스
—
업데이트
2026. 10. 26.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬