Keyfree · your own policy on testnet
Run your own policy
Paste your contract, pick chains and limits. You get the code hash your policy's allow list must hold,
a ready setup/config.json, and the exact commands in order. Everything is computed in this page: it asks
for no key and makes no network request at all.
1 · Your contract
Creation bytecode followed by the ABI-encoded constructor arguments, exactly what the deploy transaction carries.
Foundry out/X.sol/X.json or a Hardhat artifact. The file is read in this page and goes nowhere.
2 · Who decides and where
Account names are NEAR testnet ids (lowercase letters, digits, -, _, .; 2 to 64 characters; ending in .testnet).
The setup script creates the policy and the agent as sub-accounts of the owner, so both names must end in .<owner>.
The guardian and the reserve must already exist.
Chains
3 · What you get
Fix the fields in step 2.
Save it as setup/config.json in the repository. Everything not set above is copied from setup/config.example.json.
Run them from the repository root (Node 20.3+). The owner's key is read from ~/.near-credentials/testnet/<owner>.json.
Fix the fields above.
Once it is installed, watch it live: the explorer, opened on your policy shows its keys, its rules, what is waiting, and every request your agent makes with the policy's answer.