Skip to main content

Getting Started

Get up and running with Niflheim-X in just a few minutes! This guide will walk you through installation, basic setup, and your first AI agent.

🔧 Installation

Python Installation

# Install from PyPI
pip install niflheim-x

# Or install with enterprise features
pip install "niflheim-x[enterprise]"

# Development installation
pip install "niflheim-x[dev]"

TypeScript/Node.js Installation

# Install the core package
npm install @niflheim-x/core

# Or with yarn
yarn add @niflheim-x/core

# For development
npm install --save-dev @niflheim-x/dev-tools

🚀 Lightning Fast

  • 50KB total size vs LangChain's 50MB
  • Instant startup - no 5-second import delays
  • Minimal dependencies - only 3 core packages

🏢 Enterprise Ready

  • Multi-language support - Python & TypeScript
  • Production observability - metrics, tracing, logging
  • Protocol standards - A2A and MCP support
  • Advanced workflows - visual multi-agent orchestration

🛠️ Developer Friendly

  • 5-minute setup from zero to production
  • Type-safe with full IDE support
  • Hot-swappable backends - memory, SQLite, vector stores
  • Tool ecosystem - one-line function registration

Quick Start

Choose your language:

pip install niflheim-x
import asyncio
from niflheim_x import Agent, OpenAIAdapter

async def main():
# Create an agent
agent = Agent(
llm=OpenAIAdapter(api_key="your-key"),
system_prompt="You are a helpful assistant.",
memory_backend="dict"
)

# Add a tool
@agent.tool
def calculator(expression: str) -> float:
"""Evaluate mathematical expressions."""
return eval(expression) # Don't use eval() in production!

# Chat with your agent
response = await agent.chat("What's 25 * 4 + 10?")
print(response.content)

if __name__ == "__main__":
asyncio.run(main())

Next Steps

📚 Learn the Basics

🏗️ Build Something Real

🚀 Enterprise Features

Performance Comparison

MetricNiflheim-XLangChainBeeAIAutoGen
Import Time50ms2-5s~1s~3s
Memory Usage10MB200MB100MB150MB
Bundle Size50KB50MB15MB25MB
Dependencies350+20+30+
Time to Production5 minDaysHoursWeeks

Why Developers Choose Niflheim-X

"Migrated from LangChain in 2 hours. Same functionality, 10x faster startup."
- Senior Developer at AI Startup

"Finally, an agent framework that doesn't break with every update."
- DevOps Engineer

"The TypeScript support is phenomenal. Best DX I've experienced."
- Full-Stack Developer

Community & Support

Ready to build lightning-fast AI agents? Install Niflheim-X and start building in 5 minutes!