Legacy2Modern (L2M) is an open-source, AI coding agent that helps you modernize legacy codebases into modern programming languages within your terminal.
- Modern TUI: Clean terminal interface with brand-colored UI elements
- Multi-Provider Support: Works with OpenAI, Anthropic, DeepSeek, Gemini, and 100+ other LLM providers via LiteLLM
- Interactive Chat: Natural conversation with your codebase - ask questions, request changes, and get AI assistance
- File Management: Add files to context, drop them when done, view what's in your chat session
- Git Integration: Automatic commits, undo support, and repository-aware context
- Streaming Responses: Real-time AI responses with markdown rendering
- Session History: Persistent conversation history across sessions
- Python 3.10+
- BYOK for your preferred LLM provider (OpenAI, Anthropic, etc.)
curl -fsSL https://astrio.app/l2m/install | bashor
pip install l2mTo set up your API key, create a .env file at the root of your project and add your provider key(s):
# Example for OpenAI:
OPENAI_API_KEY=sk-...
# Example for Anthropic:
ANTHROPIC_API_KEY=sk-ant-...
# Example for DeepSeek:
DEEPSEEK_API_KEY=...
# Add other providers as neededYou can quickly start by copying the example environment file:
cp .env.example .env# Start the interactive CLI
l2m- Getting Started - Installation and quick start guide
- Full Documentation - Complete documentation index
This project is licensed under the Apache-2.0 License. See the LICENSE file for details.
For security vulnerabilities, please email naingoolwin.astrio@gmail.com instead of using the issue tracker. See SECURITY.md for details.
We welcome all contributions — from fixing typos to adding new language support! See CONTRIBUTING.md for setup instructions, coding guidelines, and how to submit PRs.
- Follow our project updates on X
- Join our Discord
- Join the discussion: GitHub Discussions
- Report bugs: GitHub Issues
For partnership inquiries or professional use cases:
