Skip to main content

DEPRECATED - Use 'crystalyse' package instead. This package is no longer maintained.

Project description

CrystaLyse.AI

โš ๏ธ DEPRECATED - This package has been replaced by crystalyse

The crystalyse-ai package is no longer maintained. Please migrate to the new crystalyse package (v1.0.0+) which includes:

  • Complete provenance system for computational honesty
  • Auto-download of checkpoints and data files
  • Enhanced PyMatGen integration with Materials Project database
  • Streamlined architecture with 90% code reduction
  • Better performance and reliability

Migration: Simply pip uninstall crystalyse-ai && pip install crystalyse

See: Migration Guide


CrystaLyse.AI - Autonomous AI agents for accelerated inorganic materials design through natural language interfaces

PyPI version Python 3.11+ License: MIT

Status: DEPRECATED - Use crystalyse instead

CrystaLyse.AI is a computational materials design platform that accelerates materials exploration through AI-powered analysis and validation. Built on the OpenAI Agents framework with Model Context Protocol (MCP) integration, it provides a dual-mode system for rapid materials design workflows.

๐Ÿš€ Quick Start

Installation

# Install from PyPI
pip install crystalyse-ai

# Set your OpenAI API key
export OPENAI_API_KEY="sk-your-key-here"

# Verify installation
crystalyse --help

Basic Usage

# Creative mode (fast exploration ~50 seconds)
crystalyse analyse "Find stable perovskite materials for solar cells" --mode creative

# Rigorous mode (complete validation 2-5 minutes)
crystalyse analyse "Analyse CsSnI3 for photovoltaic applications" --mode rigorous

# Interactive session
crystalyse chat

โœจ Key Features

๐Ÿ”„ Dual-Mode Analysis System

  • Creative Mode: Fast exploration (~50 seconds) using Chemeleon + MACE
  • Rigorous Mode: Complete validation (2-5 minutes) with SMACT + Chemeleon + MACE + Analysis Suite
  • Real-time mode switching with unified interface

๐Ÿงช Complete Materials Pipeline

  • Composition Validation: SMACT screening for chemically reasonable materials
  • Structure Prediction: Chemeleon crystal structure generation with multiple candidates
  • Energy Calculations: MACE formation energy evaluation with uncertainty quantification
  • Comprehensive Analysis: XRD patterns, RDF analysis, coordination studies
  • 3D Visualisation: CIF file generation and professional analysis plots

๐Ÿ’ป Advanced Interface Options

  • Unified CLI: Single command interface with /mode and /agent switching
  • Session Management: Persistent conversation history across multi-day projects
  • Interactive Chat: Research-grade session-based workflows
  • Batch Processing: High-throughput materials screening capabilities

๐Ÿ”ฌ Scientific Applications

Energy Materials

  • Battery cathodes and anodes (Li-ion, Na-ion, solid-state)
  • Solid electrolytes and ion conductors
  • Photovoltaic semiconductors and perovskites
  • Thermoelectric materials

Electronic Materials

  • Ferroelectric and multiferroic materials
  • Magnetic materials and spintronics
  • Semiconductor devices and memory materials
  • Superconductors and quantum materials

๐Ÿ“Š Performance Characteristics

Operation Creative Mode Rigorous Mode
Simple query ~50 seconds 2-3 minutes
Complex analysis 1-2 minutes 3-5 minutes
Batch processing 5-10 minutes 15-30 minutes

๐Ÿ› ๏ธ Advanced Usage

Interactive Research Sessions

# Start a research session
crystalyse chat -u researcher -s solar_project -m creative

# Resume previous work
crystalyse resume solar_project -u researcher

# List all sessions
crystalyse sessions -u researcher

In-Session Commands

/mode creative     # Switch to creative mode
/mode rigorous     # Switch to rigorous mode
/agent chat        # Switch to chat agent
/agent analyse     # Switch to analysis agent
/help              # Show available commands
/exit              # Exit interface

๐Ÿ“ˆ Example Output

Creative Mode Results

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Discovery Results โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ Generated 5 perovskite candidates with formation energies:            โ”‚
โ”‚                                                                        โ”‚
โ”‚ 1. CsGeIโ‚ƒ - Formation energy: -2.558 eV/atom (most stable)           โ”‚
โ”‚ 2. CsPbIโ‚ƒ - Formation energy: -2.542 eV/atom                         โ”‚
โ”‚ 3. CsSnIโ‚ƒ - Formation energy: -2.529 eV/atom                         โ”‚
โ”‚ 4. RbPbIโ‚ƒ - Formation energy: -2.503 eV/atom                         โ”‚
โ”‚ 5. RbSnIโ‚ƒ - Formation energy: -2.488 eV/atom                         โ”‚
โ”‚                                                                        โ”‚
โ”‚ CIF files created: CsGeI3.cif, CsPbI3.cif, CsSnI3.cif               โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

Rigorous Mode Output

  • Complete SMACT composition validation
  • Multiple structure candidates per composition
  • Professional analysis plots (XRD, RDF, coordination analysis)
  • CIF file generation for all structures
  • Publication-ready results

๐Ÿ”ฌ Scientific Integrity

CrystaLyse.AI maintains computational honesty:

  • 100% Traceability: Every result traces to actual tool calculations
  • Zero Fabrication: No estimated or hallucinated numerical values
  • Complete Transparency: Clear distinction between AI reasoning and computational validation
  • Anti-Hallucination System: Response validation prevents fabricated results

๐Ÿ–ฅ๏ธ System Requirements

  • Python 3.11+
  • 8GB RAM minimum (16GB recommended)
  • OpenAI API key
  • Optional: NVIDIA GPU for MACE acceleration

๐Ÿ”ง Development Installation

For development or advanced usage:

# Clone repository
git clone https://github.com/ryannduma/CrystaLyse.AI.git
cd CrystaLyse.AI

# Create conda environment
conda create -n crystalyse python=3.11
conda activate crystalyse

# Install in development mode
pip install -e .

๐Ÿค Acknowledgments

CrystaLyse.AI builds upon exceptional open-source tools:

  • SMACT: Semiconducting Materials by Analogy and Chemical Theory
  • Chemeleon: Crystal structure prediction with AI
  • MACE: Machine learning ACE force fields
  • Pymatviz: Materials visualisation toolkit
  • OpenAI Agents SDK: Production-ready agent framework

๐Ÿ“š Citation

If you use CrystaLyse.AI in your research, please cite the underlying tools:

  • SMACT: Davies et al., "SMACT: Semiconducting Materials by Analogy and Chemical Theory" JOSS 4, 1361 (2019)
  • Chemeleon: Park et al., "Exploration of crystal chemical space using text-guided generative artificial intelligence" Nature Communications (2025)
  • MACE: Batatia et al., "MACE: Higher Order Equivariant Message Passing Neural Networks for Fast and Accurate Force Fields" NeurIPS (2022)
  • Pymatviz: Riebesell et al., "Pymatviz: visualization toolkit for materials informatics" (2022)

๐Ÿ“„ License

MIT License - see LICENSE for details.

๐Ÿ› Issues & Support

Report issues on GitHub Issues

๐Ÿ”— Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

crystalyse_ai-1.0.15.tar.gz (161.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

crystalyse_ai-1.0.15-py3-none-any.whl (181.4 kB view details)

Uploaded Python 3

File details

Details for the file crystalyse_ai-1.0.15.tar.gz.

File metadata

  • Download URL: crystalyse_ai-1.0.15.tar.gz
  • Upload date:
  • Size: 161.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.20

File hashes

Hashes for crystalyse_ai-1.0.15.tar.gz
Algorithm Hash digest
SHA256 72c5eee3acb1da8e555e9125a9e528c1b29821c4975409902f449ee19617012d
MD5 65526557a09f79cb416226ce97caf4dc
BLAKE2b-256 5d24c65c82d407e52e1c76285260dc1b1647d524ab0e781f8a723b02b84e35b8

See more details on using hashes here.

File details

Details for the file crystalyse_ai-1.0.15-py3-none-any.whl.

File metadata

  • Download URL: crystalyse_ai-1.0.15-py3-none-any.whl
  • Upload date:
  • Size: 181.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.20

File hashes

Hashes for crystalyse_ai-1.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 24c7d2aa1fd8b098ff7ac7fb1851ad66762f7c5dacb619d42c5d5bb7422b16da
MD5 ce4b89e2d0c6691c2f1cf062a8c9e0d5
BLAKE2b-256 679041363a63532ea84a2fb323b4f6a37b29d1db6c4a7608a2e5a0d2bf0bf15f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page