A decentralized platform for deploying and consuming AI agents on Cardano
DAgent is a platform where developers can deploy their AI agents and make them available for other developers to use. The platform works on a staking-based model using Cardano: to deploy an agent, the creator stakes a certain amount of ADA, and to use that agent, another developer must also stake ADA. When the user stakes and accepts the usage terms, the agent owner automatically earns from that stake.
-
π Authentication & Wallet
- Google OAuth integration for seamless login
- Cardano wallet connection (Nami, Eternl, Typhon, Flint)
- Secure wallet management and session handling
-
π€ Agent Marketplace
- Browse and discover AI agents deployed by other developers
- Filter agents by category, performance, and staking requirements
- Real-time agent availability and status
- Detailed agent information and usage statistics
-
π Dashboard
- Manage your deployed AI agents
- Monitor agent performance and usage metrics
- View earnings from agent usage
- Track staking status and requirements
-
π API Key Management
- Generate and manage API keys for consuming agents
- Usage analytics and rate limiting
- Key rotation and security controls
- Track API consumption and costs
-
π Documentation & Integration
- Comprehensive guides for ADK (Agent Development Kit) integration
- LangChain framework integration examples
- Code snippets and SDK documentation
- Best practices for agent deployment
-
πΌ Wallet Section
- Track ADA balance and transactions
- Monitor earnings from agent usage
- View active stakes and staking history
- Manage staking allocations
DAgent operates on a dual-staking model built on the Cardano blockchain:
- Agent Deployment: To deploy an AI agent, creators must stake a certain amount of ADA as collateral
- Agent Usage: To use an agent, developers must also stake ADA
- Automatic Earnings: When a user stakes and accepts usage terms, the agent owner automatically earns from that stake
- Stake Distribution: Stakes are managed through smart contracts ensuring transparent and automatic revenue distribution
- Framework: Next.js 14 (App Router)
- Runtime: Bun
- Styling: Tailwind CSS
- Blockchain: Cardano (ADA)
- Authentication: Google OAuth
- Icons: Lucide React
- Animations: Framer Motion
- Charts: Recharts
- State Management: React Context API
dagent-web-v2/
βββ src/ # Source code directory
β βββ app/ # App Router pages
β β βββ layout.tsx # Root layout with Header/Footer
β β βββ page.tsx # Landing page
β β βββ frameworks/ # Frameworks documentation page
β β βββ agents/ # Agents marketplace page
β β βββ api-keys/ # API Key management page
β β βββ wallet/ # Wallet & Staking page
β β βββ settings/ # User settings page
β β βββ globals.css # Global styles & Tailwind directives
β βββ components/ # Reusable UI components
β β βββ Header.tsx # Main navigation
β β βββ Footer.tsx # Site footer
β β βββ AnimatedBeam.tsx # Hero section animation
β β βββ WalletSelectionModal.tsx # Wallet connect modal
β βββ contexts/ # React Context providers
β β βββ WalletContext.tsx # Wallet state management
β βββ lib/ # Utilities and constants
β βββ types.ts # TypeScript interfaces
β βββ constants.ts # Mock data & configuration
β βββ utils.ts # Helper functions
βββ public/ # Static assets
β βββ logo.png # Main logo
β βββ logo-full.png # Full brand logo
βββ package.json # Dependencies and scripts
βββ tsconfig.json # TypeScript configuration
βββ tailwind.config.ts # Tailwind CSS configuration
βββ next.config.mjs # Next.js configuration
- Bun (v1.0+): Install Bun
- Node.js (v18+): Required for Next.js
- Cardano Wallet: Install one of the supported wallets (Nami, Eternl, Typhon, or Flint)
-
Clone the repository:
git clone <repository-url> cd dagent-web-v2
-
Install dependencies:
bun install
-
Run the development server:
bun dev
-
Open your browser: Navigate to http://localhost:3000
bun run build
bun start- Primary:
#00FF94(Neon Green) - Main brand color - Primary Dim:
#00CC76- Hover states - Secondary:
#9D00FF(Purple) - Accent color - Accent:
#FFD700(Gold) - Highlights - Background:
#050505(Deep Black) - Surface:
#0A0A0A(Off-Black) - Surface Highlight:
#121212- Elevated surfaces
- Headings: Inter (Google Font)
- Body: Inter
- Code/Numbers: Roboto Mono
- Pixel/Accents: Press Start 2P (8-bit style)
- Header: Fixed navigation bar (visible only after wallet connection)
- Footer: Site footer with links and newsletter signup
- Animated Network: Central logo with orbiting agent icons
- Wallet Modal: Cardano wallet selection interface
- User lands on the platform (no header visible)
- User clicks "Connect with Cardano" button
- Wallet selection modal appears
- User selects and connects their Cardano wallet
- Header navbar appears with full navigation
- User can authenticate with Google OAuth for profile management
- Navigate to the Dashboard
- Click "Deploy New Agent"
- Configure your agent (name, description, API endpoints)
- Set staking requirements (minimum ADA to stake)
- Stake the required ADA amount
- Deploy and publish your agent to the marketplace
- Browse the Agents marketplace
- Select an agent that fits your needs
- Review agent details and staking requirements
- Stake the required ADA amount
- Accept usage terms
- Generate API keys for the agent
- Integrate using ADK or LangChain frameworks
- Navigate to API Keys section
- Generate a new API key for an agent
- Copy and securely store your API key
- Monitor usage and analytics
- Rotate keys as needed for security
- View your ADA balance in the Wallet section
- Track all transactions (stakes, earnings, withdrawals)
- Monitor earnings from agent usage
- Manage active stakes across different agents
- Withdraw earnings to your Cardano wallet
The Agent Development Kit (ADK) provides a standardized way to develop and deploy agents:
import { DAgentSDK } from '@dagent/adk';
const agent = new DAgentSDK({
apiKey: 'your-api-key',
agentId: 'agent-id'
});
const response = await agent.invoke({
prompt: 'Your prompt here'
});See the Frameworks documentation for complete examples.
DAgent agents can be integrated with LangChain:
from langchain.agents import DAgentAgent
from langchain.chains import DAgentChain
agent = DAgentAgent(
api_key="your-api-key",
agent_id="agent-id"
)
response = agent.run("Your prompt here")- Wallet Security: All wallet operations are handled client-side
- API Keys: Securely stored and encrypted
- Smart Contracts: All staking operations use verified Cardano smart contracts
- Authentication: Google OAuth with secure session management
- Nami: Browser extension wallet
- Eternl: Full-featured Cardano wallet
- Typhon: Mobile and desktop wallet
- Flint: Lightweight browser wallet
We welcome contributions! Please see our contributing guidelines for more information.
MIT License - see LICENSE file for details
- Documentation: Check the Frameworks page for integration guides
- Community: Join our Discord server
- Issues: Report bugs on GitHub Issues
- Real Cardano wallet integration
- Smart contract deployment
- Agent performance analytics
- Multi-chain support
- Agent marketplace filters and search
- Staking pool management
- Governance features
Built with β€οΈ on Cardano
