SafeGPT

SafeGPT

SafeGPT is an AI-powered chat assistant helping users interact with the Safe Protocol to set up and manage smart multi-sig accounts for secure and efficient onchain asset management.

Created on 11th February 2025

SafeGPT

SafeGPT

SafeGPT is an AI-powered chat assistant helping users interact with the Safe Protocol to set up and manage smart multi-sig accounts for secure and efficient onchain asset management.

The problem SafeGPT solves

SafeGPT is an AI-powered assistant designed to simplify and secure interactions with the Safe Protocol. Safe smart accounts enhance security through multi-signature (multi-sig) capabilities, requiring multiple approvals for transactions to protect against private key leaks, the leading cause of crypto hacks. However, setting up and managing these accounts can be complex, especially for users unfamiliar with smart contracts and onchain transactions.

With SafeGPT, anyone can create and manage Safe multi-sig wallets effortlessly, without needing to write code or perform onchain transactions themselves. The AI-powered agent assists users in setting up accounts, managing signers as well as proposing, approving, and executing transactions in a frictionless way.

Beyond simplifying account management, SafeGPT enhances security by performing risk analysis on pending transactions. It detects changes to Safe wallet settings, flags high-value transfers, checks the onchain reputation of transaction recipients, checks if smart contracts are verified on Etherscan and identifies risky token transfers that could result in fund loss.

Whether users want to experiment with multi-sig wallets in a risk-free environment, analyze pending transactions before signing them, or set up automated spending limits for agents, SafeGPT makes onchain asset management both easier and significantly safer.

Challenges I ran into

Integrating the Safe SDK into AgentKit while ensuring all core functionality worked smoothly was a significant challenge. One of the toughest hurdles was handling the different cases of multi-sig setups. I needed to consider all possibilities-for instance, a transaction can be executed directly if only one signer is required or if it’s the final signature needed, while in other cases it can only be proposed or approved. I had to dive deep into the Safe SDK documentation to understand transaction workflows, which differ greatly from traditional single-user transactions. I opened a PR (https://github.com/coinbase/agentkit/pull/330) to the AgentKit repo and am working with the Coinbase team to make these enhancements available in the official release to all onchain agents. As AgentKit is used as plugin for ElizaOS, it will also be available to those agents.

AgentKit is designed as a command-line tool for developers, but I aimed to create an intuitive chat interface for users. To achieve this, I re-architected the project by hosting the AI agent as a backend service and developing a React-based frontend that supports simultaneous multi-user interaction. The frontend communicates in real time with a Node.js backend via socket connections, ensuring prompt processing of user actions. This backend not only initializes and manages the AI agent using AgentKit's action providers but also seamlessly integrates Safe SDK functionalities, wallet providers and blockchain utilities to execute Safe transactions.

Tracks Applied (5)

DeFAI: Best-In-Class

Private key leaks are the leading cause of crypto hacks, putting billions at risk. Every protocol developer needs a Safe...Read More

Treasury Management: Best Overall

SafeGPT fits into the Treasury Management: Best Overall track by providing a secure and efficient solution for managing ...Read More

Smart Account Tooling - Connecting AI Agents with Safe: Core Infrastructure & Developer Tooling

SafeGPT provides an intuitive chat interface that allows everyday users to interact with Safe smart accounts through sim...Read More

Smart Account Tooling - Best Tools/Infra for Agent x Safe Communication

SafeGPT offers an intuitive chat interface that makes it easy for everyday users to interact with Safe smart accounts vi...Read More

Smart Account Tooling: Humans X AI

SafeGPT enables users to add an AI agent as a co-signer, allowing for advanced security checks before transaction execut...Read More

Discussion

Builders also viewed

See more projects on Devfolio