Skip to content

astrio-ai/l2m

Legacy2Modern (L2M)

GitHub Repo stars Follow us on X Join us on Discord Contributing Guide

Legacy2Modern (L2M) is an open-source, AI coding agent that helps you modernize legacy codebases into modern programming languages within your terminal.

L2M CLI

Features

  • 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

Quick Start

Prerequisites

  • Python 3.10+
  • BYOK for your preferred LLM provider (OpenAI, Anthropic, etc.)

Installation

curl -fsSL https://astrio.app/l2m/install | bash

or

pip install l2m

Set Up API Keys

To 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 needed

You can quickly start by copying the example environment file:

cp .env.example .env

Usage

# Start the interactive CLI
l2m

Documentation

License

This project is licensed under the Apache-2.0 License. See the LICENSE file for details.

Security

For security vulnerabilities, please email naingoolwin.astrio@gmail.com instead of using the issue tracker. See SECURITY.md for details.

Contributing

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.

Contributors

contributors

Community & Support

Contact Us

For partnership inquiries or professional use cases:

📧 naingoolwin.astrio@gmail.com