An OpenCode.ai plugin that enables AI-assisted token deployment on EVM and Solana networks with built-in launchpad functionality and automated fee collection.
🚀 Multi-Chain Support
- Deploy tokens on EVM networks (Ethereum, BSC, Polygon, Arbitrum, Optimism, Base)
- Deploy tokens on Solana (mainnet, devnet, testnet)
- Support for both mainnet and testnet deployments
💧 Automated Liquidity Pool Creation
- EVM: Automatic pool creation on Uniswap V2 and compatible DEXes
- Solana: Multi-DEX support (Raydium, Meteora, Jupiter) with guided setup
- Auto fee exclusion: Pools automatically excluded from transfer fees
- One-click deployment with liquidity in the same transaction
💰 Automated Fee Collection
- Built-in 1% transfer fee on all token transfers
- EVM: Fee mechanism integrated into smart contract
- Solana: Uses Token-2022 Transfer Fee Extension
- Fees automatically sent to your configured wallet
- Smart pools excluded from fees to prevent drainage
🤖 AI-Powered Deployment
- Natural language commands to deploy tokens
- Interactive wizard guides you step-by-step
- Automated parameter validation and error handling
- Comprehensive deployment logging
🔒 Security First
- Input validation for all parameters
- Private key handling best practices
- Automatic pool fee exclusion
- Open-source and auditable code
Simply add to your OpenCode config file (~/.opencode/config.json):
{
"plugins": ["@opencoins/launchpad-plugin"]
}That's it! OpenCode.ai will:
- Download the plugin from npm
- Install dependencies automatically
- Use the pre-compiled code
- Ready to use immediately
No build required! 🎉
If you want to modify the plugin or contribute:
# Clone the repository
git clone https://github.com/singulargh/opencoins.git
cd opencoins
# Install dependencies
npm install
# Build the plugin
npm run buildAdd to your OpenCode configuration file (~/.opencode/config.json):
{
"plugins": ["file:///path/to/opencoins"]
}The easiest way to launch a token! The wizard guides you step-by-step:
"I want to launch a token"
"Help me create a new token"
"Start the token wizard"
The AI will:
- Ask for blockchain choice (EVM or Solana)
- Help you select a network
- Guide you through token parameters (name, symbol, supply)
- Request deployment credentials
- Ask if you want to create a liquidity pool 💧
- Collect pool parameters (token amount, ETH/SOL amount)
- Deploy token and create pool (if requested) 🚀
The wizard now includes an optional liquidity pool creation step:
For EVM Networks (Ethereum, BSC, Polygon, etc.):
- Automatically creates pools on Uniswap V2 and compatible DEXes
- Approves token spending and adds liquidity in one flow
- Returns pair address and LP token information
For Solana:
- Provides guidance for manual Raydium pool creation
- Displays all necessary information (mint address, amounts)
- Links to Raydium UI for easy setup
📖 Full guide: See docs/GUIDED_LAUNCH.md
For experienced users who know exactly what they want:
Use natural language with OpenCode.ai:
Deploy an ERC-20 token called "MyToken" with symbol "MTK" and 1 million supply on Sepolia testnet
Or use the tool directly:
{
"tool": "deploy-evm-token",
"args": {
"network": "sepolia",
"name": "MyToken",
"symbol": "MTK",
"decimals": 18,
"totalSupply": "1000000",
"privateKey": "0x..."
}
}Response:
{
"success": true,
"message": "Token MyToken (MTK) deployed successfully on Sepolia Testnet",
"tokenAddress": "0x...",
"transactionHash": "0x...",
"blockExplorer": "https://sepolia.etherscan.io/address/0x...",
"network": "Sepolia Testnet",
"deployer": "0x...",
"feeCollector": "0x...",
"feePercentage": "1%"
}Create a Solana token named "SolToken" with symbol "SOL" and 10 million supply on devnet
Or use the tool:
{
"tool": "deploy-solana-token",
"args": {
"network": "devnet",
"name": "SolToken",
"symbol": "SOL",
"decimals": 9,
"supply": "10000000",
"keypair": "[1,2,3,...]" // JSON array from keypair file
}
}Show me information about the token at address 0x... on Ethereum
Or:
{
"tool": "get-token-info",
"args": {
"address": "0x...",
"network": "ethereum",
"chain": "evm"
}
}Mainnets:
ethereum- Ethereum Mainnetbsc- BNB Smart Chainpolygon- Polygonarbitrum- Arbitrum Oneoptimism- Optimismbase- Base
Testnets:
sepolia- Sepolia TestnetbscTestnet- BSC Testnetmumbai- Mumbai Testnet
mainnet- Solana Mainnet Betadevnet- Solana Devnettestnet- Solana Testnet
The plugin integrates with Uniswap V2 and compatible DEXes to automatically create liquidity pools:
Supported DEXes by Network:
- Ethereum: Uniswap V2
- Sepolia: Uniswap V2 Testnet
- BSC: PancakeSwap
- Polygon: QuickSwap
- Arbitrum: SushiSwap
- Optimism: SushiSwap
- Base: BaseSwap
What happens automatically:
- ✅ Token approval for DEX router
- ✅ Pair creation (if doesn't exist)
- ✅ Liquidity addition with your specified amounts
- ✅ LP tokens sent to your wallet
Requirements:
- Token balance for pool
- Native currency (ETH/BNB/MATIC) for pool
- Additional gas fees
For Solana tokens, the wizard lets you choose your preferred DEX and provides guidance:
Supported DEXes:
- Raydium - Most popular, highest liquidity
- Meteora - Dynamic liquidity pools with flexible fees
- Jupiter - Aggregator with pool creation capabilities
What the wizard does:
- Asks which DEX you prefer
- Displays your token mint address
- Shows recommended amounts
- Links directly to the selected DEX's pool creation UI
- Provides step-by-step instructions
Note
Solana DEX pool creation requires OpenBook/Serum market setup (for Raydium) or other complex configurations. The wizard makes this process as easy as possible by providing all necessary information and linking to the appropriate platform.
This plugin operates as a launchpad service. Every token deployed through this plugin automatically sends 1% of all transfers to the plugin creator as a service fee.
The deployed ERC-20 contract includes a built-in 1% transfer fee:
- Automatic Deduction: On every transfer, 1% is automatically deducted
- Fee Recipient: Sent to the plugin creator's address (hardcoded in
src/config.ts) - Cannot Be Changed: Fee recipient is immutable once contract is deployed
- Exclusions: Plugin creator can exclude specific addresses (e.g., DEX pools) if needed
Uses Token-2022's Transfer Fee Extension:
- Transfer Fee Config: 1% (100 basis points) on all transfers
- Withheld Fees: Fees are withheld in token accounts
- Fee Withdrawal: Plugin creator can withdraw accumulated fees
- Cannot Be Changed: Fee configuration is immutable once token is created
- Standard Compliant: Follows SPL Token-2022 specification
The launchpad service model ensures:
- ✅ Sustainable development and maintenance of the plugin
- ✅ Professional smart contracts with security best practices
- ✅ Ongoing support and updates
- ✅ Fair compensation for providing the infrastructure
Warning
Private Key Safety
- Never commit
.envfiles to version control - Use environment variables or secure key management
- Consider using hardware wallets for production deployments
Caution
Smart Contract Audits
- The provided contracts are templates
- Always audit contracts before mainnet deployment
- Consider professional security audits for large deployments
Important
Fee Disclosure
- Clearly communicate the 1% fee to token holders
- Consider providing fee exclusion for liquidity pools
- Ensure compliance with local regulations
npm run buildnpm run dev# Run all tests
npm test
# Run integration tests
npm run test:integrationnpm run compile-contractsGetting Started:
- Guided Token Launch - Step-by-step wizard
- Quick Start - Get running fast
- Usage Guide - Detailed examples
Technical:
- Smart Contracts - Contract architecture & fees
- Security - Security best practices
- Configuration - Advanced configuration
- Deployment - Production deployment
Development:
- NPM Publication - Publishing guide
- Git Guidelines - Commit standards
We welcome all contributions! 🎉
- 🐛 Bug reports and fixes
- 💡 Feature suggestions and implementations
- 📝 Documentation improvements
- ✨ Code enhancements
Get started: Read our Contributing Guide for guidelines on:
- Development setup
- Coding standards
- Pull request process
- Testing requirements
MIT License - see LICENSE for details
- GitHub Issues: https://github.com/singulargh/opencoins/issues
- Documentation: https://github.com/singulargh/opencoins/docs
This software is provided "as is" without warranty. Use at your own risk. Always conduct thorough testing and audits before deploying to production networks.