Since the chat application starts with no users, you'll need to register your first account.
- Navigate to http://localhost:3081
- Click "Sign up" or "Register" link
- Create an account with:
- Admin Demo:
- Email:
admin@hanzo.ai - Password:
demo1234
- Email:
- Regular Demo User:
- Email:
demo@hanzo.ai - Password:
demo1234
- Email:
- Admin Demo:
If you need to create demo users programmatically:
# Access MongoDB shell
docker exec -it hanzo-mongodb mongosh mongodb://hanzo:hanzo123@localhost:27017/HanzoChat?authSource=admin
# Create demo admin user
db.users.insertOne({
email: "admin@hanzo.ai",
username: "admin",
name: "Hanzo Admin",
password: "$2a$10$hashed_password_here", // Use bcrypt to hash "demo1234"
role: "ADMIN",
isVerified: true,
emailVerified: true,
createdAt: new Date(),
updatedAt: new Date(),
refreshToken: [],
plugins: []
});To show demo credentials on the login page when running locally, add to your .env:
# Show demo credentials on login page (development only)
SHOW_DEMO_CREDENTIALS=true
DEMO_EMAIL=admin@hanzo.ai
DEMO_PASSWORD=demo1234Once logged in, you'll have access to:
- MCP Tools: File operations, search, code analysis
- Agent Features: Multi-agent workflows via Hanzo Agent SDK
- LLM Gateway: Access to 100+ AI providers through unified interface
- Custom Branding: Hanzo AI themed interface
- Ensure
ALLOW_REGISTRATION=trueis set in environment - Check MongoDB is running:
docker ps | grep mongodb - Check logs:
docker logs hanzo-chat
- Clear browser cookies for localhost:3081
- Verify user exists in database using MongoDB commands above
- Check JWT secrets are properly set in environment
- Verify
MCP_ENABLED=truein container environment - Check MCP servers configuration at
/app/mcp_servers.hanzo.json - Restart the chat service:
make restart
These demo credentials are for local development only. In production:
- Use strong, unique passwords
- Disable demo credential display
- Enable proper authentication (OAuth, LDAP, etc.)
- Use environment-specific secrets