Skip to main content

Hexaly Assistant

Hexaly Assistant teaches your AI coding agent to write Hexaly optimization models. One command connects the Hexaly MCP server to your agent and installs four skills: hexaly-model writes, fixes, validates, and runs a model; hexaly-improve makes an existing model find feasible or better solutions faster; hexaly-convert turns a model from another solver or language into Hexaly; hexaly-specify turns a vague request into a written specification first. The server supplies instructions, rules, examples, documentation, and HXM source utilities; the skills run saved models from the agent's shell.

Requirements

  • One of: Linux x86_64 with kernel 4.18 and glibc 2.28 or newer (also in WSL), macOS 14 or newer on Apple silicon or Intel, or Windows x86_64.
  • Python 3.11 or newer and pipx (Node.js is bundled, users do not need to install it separately).
  • To run models: Hexaly 15.0 with a license, plus the Hexaly Python package for Python models. Installation is not required for setup or MCP lookup tools.

Install

1. Install the package, in a terminal (Linux, macOS, WSL, or Windows PowerShell):

pipx install hexaly-assistant

If your shell then does not find hexaly-setup, run pipx ensurepath and open a new terminal.

2. Set up your agent. Run the line for your client, without sudo or administrator rights:

Claude Code (CLI and IDE extension):

hexaly-setup claude-code

Codex (CLI and IDE extension):

hexaly-setup codex

Cursor:

hexaly-setup cursor

GitHub Copilot (VS Code, Copilot CLI, Agent Host):

hexaly-setup github-copilot

The command registers the installed hexaly-mcp executable by its absolute path as the hexaly MCP server in your client's user configuration, and installs the four skills. It removes the hexaly-modeling skill of earlier releases when setup installed it, and leaves an unmarked folder of that name in place with a warning. Your client then starts the server directly: it needs no network access or environment variables at start. The command preserves other settings and extra fields such as the server's env. Restart your client afterwards.

Update

pipx upgrade hexaly-assistant

Then run the setup command again for each client you use, and restart them; it updates the skills with the server. The server installation is shared.

pipx list

The hexaly-assistant line shows the installed version.

Uninstall

pipx uninstall hexaly-assistant

Remove the hexaly server and the hexaly-model, hexaly-improve, hexaly-convert, and hexaly-specify skill folders from each client you set up:

Client Configuration Skill folders in
Claude Code ~/.claude.json (mcpServers.hexaly) ~/.claude/skills/
Codex ~/.codex/config.toml or $CODEX_HOME/config.toml ([mcp_servers.hexaly]) ~/.agents/skills/
Cursor ~/.cursor/mcp.json (mcpServers.hexaly) ~/.agents/skills/
GitHub Copilot ~/.copilot/mcp-config.json or $COPILOT_HOME/mcp-config.json (mcpServers.hexaly) ~/.copilot/skills/ or $COPILOT_HOME/skills/

Use

Ask your agent for a model, for example: "Write a Hexaly model in Python for this vehicle routing problem and run it on data.txt." The hexaly-model skill has the agent write down the problem's inputs and outputs, gather the Hexaly reference, rules, examples, and documentation it needs, then validate and run the exact saved model from the agent shell before handing it over. It hands off to hexaly-improve when the model finds no feasible solution or solves poorly, and starts from hexaly-convert or hexaly-specify for conversions and vague requests.

Tools What the agent gets
get_modeling_instructions The HXM or Python modeling reference
list_rules, get_rules Formulation rules
list_examples, get_examples Hexaly worked examples in HXM and Python
search_docs Hexaly documentation keyword search
validate_hxm, format_hxm, inspect_hxm HXM diagnostics, formatting, and source structure

Clients without skills can use the hexaly-model, hexaly-improve, hexaly-convert, and hexaly-specify MCP prompts instead.

Runtime selection

The agent runs the exact saved candidate in its own shell with a five-second model limit.

  1. Use a command or absolute executable explicitly supplied by the user.
  2. Otherwise use the project's documented command.
  3. For Python, use the project's own environment: its environment manager's run command when the project uses one; otherwise the active shell's python.
  4. For HXM, use hexaly from the shell PATH.

The model uses the agent shell's runtime, license, virtual environment, and project configuration. On failure, the skill reports the exact shell error and the applicable installation link. Run untrusted models in an isolated machine.

Troubleshooting

  • Refusing to replace existing Hexaly MCP server or skill: a different hexaly server is configured, or the existing skill lacks the package ownership marker and differs from the bundled skill. Remove the printed path only if you intend to replace it, then run setup again.
  • The agent never calls the Hexaly tools, or the client reports the hexaly server's connection closed: run setup again for your client and restart it; setup prints the server: path it registered. If it still fails, check the client's MCP server log for the hexaly server and run that path by hand: it should wait for input without printing anything.
  • The agent cannot run models: run the same saved-file command in the agent shell. Install the missing Hexaly runtime or Python package, or fix the project's documented command.

License

By downloading Hexaly, you explicitly acknowledge and agree to its terms and conditions of use. Consequently, we invite you to read carefully the Terms and Conditions before downloading and using the software. In particular, we remind you that any commercial use of Test, Trial, or Academic licenses is strictly prohibited.

Metadata

Release files for hexaly-assistant 15.0.20261126

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for hexaly-assistant 15.0.20261126
File Actions
hexaly_assistant-15.0.20261126-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for hexaly_assistant-15.0.20261126-py3-none-win_amd64.whl
hexaly_assistant-15.0.20261126-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details for hexaly_assistant-15.0.20261126-py3-none-manylinux_2_28_x86_64.whl
hexaly_assistant-15.0.20261126-py3-none-macosx_14_0_x86_64.whl Python 3 none macOS 14.0+ x86-64 Details for hexaly_assistant-15.0.20261126-py3-none-macosx_14_0_x86_64.whl
hexaly_assistant-15.0.20261126-py3-none-macosx_14_0_arm64.whl Python 3 none macOS 14.0+ ARM64 Details for hexaly_assistant-15.0.20261126-py3-none-macosx_14_0_arm64.whl

Total release size: 164.0 MB

Release files / hexaly_assistant-15.0.20261126-py3-none-win_amd64.whl

Download URL hexaly_assistant-15.0.20261126-py3-none-win_amd64.whl
Size 36.4 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
297cff4b36285a70d8a72441abe6ca24e4d0fb9e127e00b600f9b8741716aa3c
BLAKE2b-256 checksum
How to use checksums
b7d3c311f4c5a3f2832a74b3569972ebb283436e0c9066e0097727e60815c50b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

Release files / hexaly_assistant-15.0.20261126-py3-none-manylinux_2_28_x86_64.whl

Download URL hexaly_assistant-15.0.20261126-py3-none-manylinux_2_28_x86_64.whl
Size 44.7 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
7e0df4103ec87ecfbc834f527fa8bcf9121fcd8fba04411e961c4e89767b4a43
BLAKE2b-256 checksum
How to use checksums
7a762cde962728cdee72278926bf50a57449f1238af020e299f51f059de1c94c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

Release files / hexaly_assistant-15.0.20261126-py3-none-macosx_14_0_x86_64.whl

Download URL hexaly_assistant-15.0.20261126-py3-none-macosx_14_0_x86_64.whl
Size 42.1 MB
Tags Python 3 macOS 14.0+ x86-64
SHA-256 checksum
How to use checksums
88dd39ffeddec29cbfe2b6014089c601cf5597ef231b09a468cdacd5680630f4
BLAKE2b-256 checksum
How to use checksums
2bf8e80f98e63e5ba65de12f6c675d73d3827442f51d898a7856e0972b3e8e3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

Release files / hexaly_assistant-15.0.20261126-py3-none-macosx_14_0_arm64.whl

Download URL hexaly_assistant-15.0.20261126-py3-none-macosx_14_0_arm64.whl
Size 40.7 MB
Tags Python 3 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
04f26b460a4f88ee471a321ece4e80dcf9c6452f15739204a2d21e270f844080
BLAKE2b-256 checksum
How to use checksums
74e6041d9bed90933c6d06d990541f3c7abe03cac149bfc405defbaa53f59c67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

Security for hexaly-assistant 15.0.20261126

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page