This directory contains ready-to-use templates for building AI applications with Echo. Each template is pre-configured with Echo integration and demonstrates different use cases and frameworks.
The fastest way to get started is using the echo-start CLI tool:
npx echo-start@latest --template <template-name>You'll be prompted for your Echo App ID during setup. If you don't have one yet, visit echo.merit.systems/new to create a new app.
A minimal Next.js application with Echo integration, perfect for getting started quickly.
npx echo-start@latest --template nextFeatures:
- Next.js 15 with App Router
- Server-side Echo integration
- Basic authentication flow
- Echo provider configuration
A Vite-powered React application with Echo's client-side SDK.
npx echo-start@latest --template viteFeatures:
- Vite for fast development
- Client-side OAuth2 + PKCE
- No backend required for AI calls
- React 18 with TypeScript
Full-featured chat UI using @assistant-ui/react with AI SDK v5.
npx echo-start@latest --template assistant-uiFeatures:
- Modern chat interface
- AI SDK v5 integration
- Streaming responses
- Built-in UI components
A command-line interface for AI chat powered by Echo with support for both API key and crypto wallet payments.
Note: This template is different from web-based templates. Install it directly from the repository:
git clone https://github.com/Merit-Systems/echo.git
cd echo/templates/echo-cli
pnpm install
pnpm buildFeatures:
- Dual authentication: Echo API keys or WalletConnect
- Multi-model support (GPT-4o, GPT-5, etc.)
- X402 protocol for crypto payments
- Conversation history and resume
- Secure OS keychain credential storage
- Export conversations as JSON
- Profile and usage management
Usage:
echodex login # Authenticate
echodex # Start chat
echodex model # Select AI model
echodex resume # Resume conversation
echodex history # View history
echodex export # Export as JSON
echodex profile # View profile
echodex logout # Sign outA complete chat application with beautiful UI components.
npx echo-start@latest --template next-chatFeatures:
- Full chat interface
- Real-time balance display
- Message history
- Streaming AI responses
- shadcn/ui components
Image generation application with Echo billing.
npx echo-start@latest --template next-imageFeatures:
- AI image generation
- Gallery view
- Download capabilities
- Automatic cost tracking
- Multiple AI image providers
Video generation application integrated with Echo.
npx echo-start@latest --template next-video-templateFeatures:
- AI video generation
- Video preview and playback
- Echo billing integration
- Modern video player UI
Server-side API key management with database integration.
npx echo-start@latest --template nextjs-api-key-templateFeatures:
- API key generation and management
- PostgreSQL database with Prisma
- Server-side authentication
- Docker setup for local development
- Secure key storage
Chat interface built for React applications.
npx echo-start@latest --template react-chatFeatures:
- Client-side chat UI
- Vite + React
- Tailwind CSS styling
- Echo OAuth integration
Image generation for client-side React applications.
npx echo-start@latest --template react-imageFeatures:
- Client-side image generation
- React-based UI
- Echo billing
- Image gallery
Next.js application demonstrating Echo as an Auth.js provider for authentication.
npx echo-start@latest --template authjsFeatures:
- Auth.js (NextAuth v5) integration
- Echo as authentication provider
- Server-side session management
Each template follows a consistent structure:
template-name/
├── src/ # Source code
│ ├── app/ # Application pages (Next.js)
│ ├── components/ # React components
│ └── echo/ # Echo configuration
├── public/ # Static assets
├── package.json # Dependencies
├── README.md # Template-specific documentation
└── [config files] # Framework-specific config
# npm
npx echo-start@latest --template <template-name>
# yarn
yarn dlx echo-start@latest --template <template-name>
# pnpm
pnpx echo-start@latest --template <template-name>
# bun
bunx echo-start@latest --template <template-name>All templates require an Echo App ID. Get yours at echo.merit.systems/new.
Configure in src/echo/index.ts:
export const { handlers, isSignedIn, openai, anthropic } = Echo({
appId: 'your-echo-app-id',
});Configure in src/echo/index.ts:
export const echo = new Echo({
appId: 'your-echo-app-id',
});Some templates (like nextjs-api-key-template) may require additional environment variables. Check the template's README for details.
- Echo Docs: echo.merit.systems/docs
- Next.js SDK: echo.merit.systems/docs/next-sdk
- React SDK: echo.merit.systems/docs/react-sdk
- TypeScript SDK: echo.merit.systems/docs/typescript-sdk
- Platform: echo.merit.systems
- Documentation: echo.merit.systems/docs
- GitHub: github.com/Merit-Systems/echo
Built with ❤️ by Merit Systems