A powerful tool for converting and executing code between programming languages using AI models.
CodeXchange AI translates code between programming languages while maintaining functionality and idiomatic patterns, with support for real-time execution.

Screenshot: Converted code with documentation, ready to run
- Multi-language code conversion (17 programming languages)
- Real-time code execution
- Multiple AI model support (GPT, Claude, DeepSeek, GROQ, Gemini)
- File upload/download functionality
- Syntax highlighting
- Detailed logging
# Clone the repository
git clone [email protected]:alakob/ai_code_converter.git
cd ai_code_converter
# Configure environment
cp .env.example .env
# Edit .env with your API keys
# Make the script executable
chmod +x run-docker.sh
# Run the application
./run-docker.shThe application will be available at http://localhost:7860
Docker wrapper script options:
./run-docker.sh -d # Run in detached mode
./run-docker.sh -p 8080 # Run on port 8080
./run-docker.sh -s # Stop the container
./run-docker.sh -h # Show help message# Create and activate virtual environment
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Configure environment
cp .env.example .env
# Edit .env with your API keys
# Run the application
python run.py- Python, JavaScript, Java, C++, TypeScript
- Go, Ruby, Swift, Rust, C#
- R, Perl, Lua, PHP, Kotlin, SQL, Julia
See Supported Languages for detailed information.
-
Language Detection: The application uses heuristics to detect the language of your code. While generally accurate, it may not always correctly identify code with ambiguous syntax. Always verify the selected source language before conversion.
-
Code Execution: Code snippets using
if __name__ == "__main__":guards will run properly in the execution environment. However, complex code with high computational complexity might appear unresponsive due to execution time. -
Execution Limitations: For security reasons, code execution occurs in isolated environments with restricted access to system resources. Some language-specific features may not be available.
- Configuration Guide
- Development Guide
- Contributing Guidelines
- Project Structure
- Architecture Diagram
The application provides an intuitive interface with:
- Code editor with syntax highlighting
- Language selection dropdowns
- Model and temperature settings
- Documentation options
- File upload/download capabilities
For a lightweight experience:
- codeXchange - Run the converter in a Jupyter environment
This project is licensed under the MIT License - see the LICENSE file for details.