Skip to main content

opsmate is a SRE AI assistant

Project description

Opsmate

PyPI version Container Image Link to documentation License

Opsmate is an LLM-powered SRE copilot for understanding and solving production problems. By encoding expert troubleshooting patterns and operational knowledge, Opsmate lets users describe problem statements and intentions in natural language, eliminating the need to memorise complex command line or domain-specific tool syntax.

Opsmate can not only perform problem solving autonomously, but also allow human operators to provide feedback and take over the control when needed. It accelerates incident response, reduces mean time to repair (MTTR), and empowers teams to focus on solving problems rather than wrestling with tooling.

Table of Contents

Features

  • 🤖 Natural Language Interface: Run commands using natural language without remembering complex syntax
  • 🔍 Advanced Reasoning: Troubleshoot and solve production issues with AI-powered reasoning
  • 🔄 Multiple LLM Support: Out of box works for OpenAI, Anthropic, xAI. Easy to extend to other LLMs.
  • 🛠️ Multiple Runtimes: Supports various execution environments such as Local, Docker, Kubernetes and remote VMs.
  • 🔭 Modern Observability Tooling: Built-in support for Prometheus allows you to create time series dashboards with natural language, and more to come.
  • 🧠 Knowledge Management: Ingest and use domain-specific knowledge
  • 📈 Web UI & API: Access Opsmate through a web interface or API
  • 🔌 Plugin System: Extend Opsmate with custom plugins

Installation

Choose your preferred installation method:

The recommended way of installing opsmate is using uv:

# Using uvx
uv tool install -U opsmate

Other than that, you can also install opsmate using pip, pipx or docker.

# Using pip
pip install -U opsmate

# Using pipx
pipx install opsmate
# or
pipx upgrade opsmate

# Using Docker
docker pull ghcr.io/opsmate-ai/opsmate:latest
alias opsmate="docker run -it --rm --env OPENAI_API_KEY=$OPENAI_API_KEY -v $HOME/.opsmate:/root/.opsmate ghcr.io/opsmate-ai/opsmate:latest"

# From source
git clone git@github.com:opsmate-ai/opsmate.git
cd opsmate
uv build
pipx install ./dist/opsmate-*.whl

Configuration

Opsmate is powered by large language models. It currently supports:

Set up your API key in an environment variable:

export OPENAI_API_KEY="sk-proj..."
# or
export ANTHROPIC_API_KEY="sk-ant-api03-..."
# or
export XAI_API_KEY="xai-..."

Quick Start

Run commands with natural language

$ opsmate run "what's the gpu of the vm"
# Output: Command and result showing GPU information

Solve complex production issues

$ opsmate solve "what's the k8s distro of the current context"
# Output: Thought process and analysis determining K8s distribution

Interactive chat mode

$ opsmate chat

Web UI and API

$ opsmate serve
# Web interface: http://localhost:8080
# API documentation: http://localhost:8080/api/docs

Advanced Usage

Opsmate can be deployed in production environments using the opsmate-operator in a Kubernetes cluster, providing:

  • Task scheduling via CRDs
  • Dedicated HTTPS endpoints and web UI for tasks
  • Multi-tenancy support
  • Automatic resource management with TTL
  • API server for environment management

Check our production documentation for details.

Use Cases

Opsmate supports various use cases:

  • Production issue troubleshooting and resolution
  • Root cause analysis
  • Performance analysis and improvement
  • Observability and monitoring setup
  • Capacity planning
  • On-call engineer assistance
  • Infrastructure as Code management
  • Routine task automation (CI/CD, backups, updates)
  • Knowledge management
  • Workflow orchestration

Integrations

For a comprehensive list of integrations, please refer to the integrations and cookbooks sections.

Documentation

For comprehensive documentation, visit here.

Contributing

Contributions are welcome! See our development guide for details.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

opsmate-0.2.3a1.tar.gz (2.0 MB view details)

Uploaded Source

Built Distribution

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

opsmate-0.2.3a1-py3-none-any.whl (192.3 kB view details)

Uploaded Python 3

File details

Details for the file opsmate-0.2.3a1.tar.gz.

File metadata

  • Download URL: opsmate-0.2.3a1.tar.gz
  • Upload date:
  • Size: 2.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for opsmate-0.2.3a1.tar.gz
Algorithm Hash digest
SHA256 55ae1e96d11e2b66a57dae949fe2ab729c7a591f1af8e8a06346275b808d2933
MD5 e596aae081ce7cd717fadef8d9751fa2
BLAKE2b-256 5be78c5777a5ca7bfebb79280cafe6f56b010a4494a21287c16f7448c5e54111

See more details on using hashes here.

Provenance

The following attestation bundles were made for opsmate-0.2.3a1.tar.gz:

Publisher: publish.yml on opsmate-ai/opsmate

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file opsmate-0.2.3a1-py3-none-any.whl.

File metadata

  • Download URL: opsmate-0.2.3a1-py3-none-any.whl
  • Upload date:
  • Size: 192.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for opsmate-0.2.3a1-py3-none-any.whl
Algorithm Hash digest
SHA256 8d8854a9161f93f337e7bd0a72a50732ac0923a442c139cc1faa6083a93a8fa0
MD5 b35583f7f886bbc9e19e9e5ecf98f618
BLAKE2b-256 10f59cb383fbc11d1b8c208cfb77fb7b8788c45974e1085c3c219730f05e0688

See more details on using hashes here.

Provenance

The following attestation bundles were made for opsmate-0.2.3a1-py3-none-any.whl:

Publisher: publish.yml on opsmate-ai/opsmate

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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