utopian
v0.1.11
Published
Utopia Node agent - Pure Deno implementation with security sandboxing
Maintainers
Readme
🌍 Utopian CLI
A powerful CLI for creating and managing decentralized Utopia nodes that tackle global challenges through AI-powered collaboration.
🚀 Quick Start
Run the Utopian CLI from any directory:
deno run --allow-read=. --allow-write=. --allow-net --allow-env --allow-run=lms https://deno.land/x/utopian/mod.tsOr clone and run locally:
git clone https://github.com/core-nexus/utopian.git
cd utopian
deno task startThis command will:
- In a fresh directory: Create a new Utopia node from scratch
- In an existing utopia-node repo: Enhance and expand the existing node
📋 Table of Contents
- Overview
- Features
- Installation
- Usage
- Configuration
- Project Structure
- AI Models
- Development
- Contributing
- License
🌟 Overview
Utopian creates decentralized nodes that collaborate to address global challenges like climate change, digital rights, and health equity. Each node:
- 🎯 Focuses on critical global issues with AI-generated research and solutions
- 🤖 Leverages AI for continuous content generation and discovery
- 🕸️ Builds trust networks with other nodes and organizations
- 📊 Generates comprehensive reports with data-driven insights
- 🎬 Creates media content including presentations and video scripts
- 🔄 Operates continuously to discover new challenges and opportunities
✨ Features
🏗️ Node Initialization
- Creates structured directories for goals, foundations, trust networks, and topics
- Initializes with critical global challenges (climate, digital rights, health equity)
- Generates foundational documents and reports
🧠 AI-Powered Content Generation
- Research Reports: Deep analysis of global challenges with statistics and solutions
- Trust Network Expansion: Discovery of credible organizations and collaborators
- Topic Discovery: Identification of emerging critical challenges
- Media Creation: Presentation slides (Marp-compatible) and video scripts
- Content Synthesis: Cross-topic analysis and strategic insights
🔄 Continuous Generation Engine
- Runs unlimited cycles of content creation and research
- Automatically discovers new topics and expands existing ones
- Builds comprehensive knowledge bases over time
- Creates actionable reports and media content
🤝 Flexible AI Integration
- OpenAI API: Use GPT models with your API key
- Local Models: LM Studio integration for privacy and cost control
- Auto-detection: Automatically chooses the best available option
📦 Installation
Direct Usage (Recommended)
deno run --allow-read=. --allow-write=. --allow-net --allow-env --allow-run=lms https://deno.land/x/utopian/mod.tsRequirements
- Deno: >= 2.x
- Optional: LM Studio for local AI models
- Optional: OpenAI API key for GPT models
🖥️ Usage
Basic Usage
# Create or enhance a Utopia node
deno task start
# Use with specific AI model
deno run --allow-read=. --allow-write=. --allow-net --allow-env --allow-run=lms mod.ts --model gpt-4
# Skip human-in-the-loop confirmations
deno run --allow-read=. --allow-write=. --allow-net --allow-env --allow-run=lms mod.ts --auto
# Use custom OpenAI-compatible endpoint
deno run --allow-read=. --allow-write=. --allow-net --allow-env --allow-run=lms mod.ts --base https://your-api.com/v1 --model your-modelCommand Options
| Option | Description | Default |
| ---------------- | ------------------------------- | ------------- |
| --base <url> | OpenAI-compatible API base URL | Auto-detected |
| --model <name> | Model name to use | Auto-detected |
| --auto | Skip human confirmation prompts | false |
AI Model Selection
The CLI automatically selects the best available AI option:
- OpenAI API (if
OPENAI_API_KEYset): Usesgpt-5by default - LM Studio (local): Uses
openai/gpt-oss-20band auto-starts server - Custom endpoint: Specify with
--baseand--modelflags
⚙️ Configuration
Environment Variables
# OpenAI API (recommended for best results)
OPENAI_API_KEY=your_openai_api_key
# LM Studio (for local/private usage)
LMSTUDIO_BASE_URL=http://localhost:1234/v1
LMSTUDIO_MODEL=your_preferred_modelLM Studio Setup
- Download and install LM Studio
- Load a compatible model (e.g., Qwen, Llama, Mistral)
- Start the local server (auto-started by CLI)
- Run
npx utopian- it will automatically detect and use LM Studio
📁 Project Structure
After initialization, your Utopia node will have this structure:
utopia-node/
├── goals/
│ └── README.md # Node objectives and vision
├── foundations/
│ └── index.yaml # Core principles and values
├── trust/
│ ├── known_nodes.yaml # Trusted organizations and nodes
│ └── expanded-network-*.yaml # AI-discovered trust networks
├── topics/ # Global challenges and solutions
│ ├── climate-action/
│ │ ├── docs/overview.md # Topic analysis
│ │ ├── slides/presentation.md # Marp slides
│ │ ├── video/script.md # Video content
│ │ └── reports/ # Research reports
│ ├── digital-rights/
│ └── global-health-equity/
├── reports/ # Synthesis and analysis reports
├── media/ # Generated presentations and scripts
└── dist/ # Compiled presentations🤖 AI Models
Recommended Models
For Local/Free:
- GPT-OSS-20B: Good balance of performance and resource usage
For Production:
- GPT-5 (OpenAI): Good quality and reasoning
- Claude 3 (Anthropic): Excellent for research and analysis
Model Performance Tips
- Larger models (70B+) produce better research and insights
- Local models provide privacy and cost control
- Use
--autoflag for unattended operation with any model
🛠️ Development
Setup
git clone https://github.com/core-nexus/utopian.git
cd utopian
# Install pre-commit hooks (optional)
pip install pre-commit
pre-commit installScripts
deno task dev # Run in development mode
deno lint # Check code style
deno fmt # Format code
deno task test # Run testsProject Commands
# Test locally
deno task start --help
# Check formatting and linting
deno fmt --check
deno lint🤝 Contributing
We welcome contributions! Please see our contribution guidelines and:
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Commit your changes:
git commit -m 'feat: add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Open a Pull Request
Code Style
- Use TypeScript for all new code
- Follow existing code formatting (
deno fmt) - Write tests for new functionality (
deno test) - Use conventional commits (
feat:,fix:,docs:, etc.)
🌐 Related Projects
- utopia-node: Reference implementation of a Utopia node
- CoreNexus: Core Utopia ecosystem projects
📄 License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
🙋 Support
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Documentation: Project Wiki
Ready to build the future? Start your Utopia node today:
deno run --allow-read=. --allow-write=. --allow-net --allow-env --allow-run=lms https://deno.land/x/utopian/mod.tsTogether, we can tackle global challenges through decentralized collaboration and AI-powered solutions.
