Skip to main content

CLI for Sealevel — the Solana-specialized coding LLM. Chat, generate Anchor programs, review code, decode errors.

Project description

Sealevel CLI

Command-line interface for Sealevel — the Solana-specialized coding AI.

Interactive session with slash commands for chatting, generating Anchor programs, reviewing code, migrating to modern patterns, decoding errors, and explaining transactions.

Install

pip install sealevel

Quick Start

# Set your API key (get one at https://sealevel.tech/dashboard)
slm config --api-key slm_xxxxxxxxxxxx

# Start interactive session
slm

Inside the session, type to chat or use / commands:

❯ How do I derive a PDA in Anchor?
◆ SEALEVEL
[streaming response with markdown rendering]

❯ /review src/lib.rs
◆ REVIEWING  src/lib.rs
[security + deprecated pattern analysis]

❯ /explain-error 0x1771
[error decode + fix suggestion]

❯ /gen "escrow with atomic token swap"
[generates full Anchor program]

Modes

slm                    # Interactive session (default)
slm -p "prompt"        # One-shot mode — print response and exit
slm -c                 # Continue most recent session
slm config --show      # View configuration

Pipe mode

slm -p "What is a PDA?"
cat src/lib.rs | slm -p "review this code"
echo "0x1771" | slm -p "explain this Solana error"

Session Commands

Type / to see all commands with live filtering. Type /help for the full list.

Chat & Code

Command Description
(plain text) Chat with Sealevel
/review <file> Review code for security issues
/migrate <file> [--write] Migrate to modern Anchor 0.30+
/gen "description" [-o file] Generate an Anchor program
/tests <file> Generate TypeScript tests

Explain

Command Description
/explain-tx <signature> Explain a Solana transaction
/explain-error <code> Decode an error code

Session

Command Description
/sessions List past sessions
/resume <id> Resume a past session
/rename <name> Rename current session
/compact [N] Trim history to last N turns
/export [file] Export session as markdown
/history Show conversation history
/clear Clear conversation

System

Command Description
/status Show API health and config
/usage Show token usage and limits
/copy Copy last response to clipboard
/rotate-key Rotate API key
/config [--show] View or set configuration
/help Show all commands
/exit Exit session

Keyboard Shortcuts

Shortcut Action
/ Open command dropdown (live filter as you type)
Tab Accept suggestion
Ctrl+R Search input history
Ctrl+L Clear screen
Ctrl+J Newline (multiline input)
Esc Esc Undo last turn
Ctrl+C Cancel current operation
Ctrl+D Exit

Configuration

slm config --api-key slm_xxxx     # Set API key
slm config --api-url https://...  # Custom endpoint
slm config --mode quality         # 'quality' or 'fast'
slm config --show                 # Show current config

Config stored at ~/.sealevel/config.toml. API key stored in OS keyring (macOS Keychain / Windows Credential Locker / GNOME Keyring).

Override config dir: SEALEVEL_CONFIG_DIR=/path/to/dir

Uninstall

pip uninstall sealevel
rm -rf ~/.sealevel

License

MIT

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

sealevel-0.1.0.tar.gz (52.9 kB view details)

Uploaded Source

Built Distribution

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

sealevel-0.1.0-py3-none-any.whl (33.8 kB view details)

Uploaded Python 3

File details

Details for the file sealevel-0.1.0.tar.gz.

File metadata

  • Download URL: sealevel-0.1.0.tar.gz
  • Upload date:
  • Size: 52.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sealevel-0.1.0.tar.gz
Algorithm Hash digest
SHA256 53a410cef4e7ed2344ce1cebcf220acadf05e1c1aa9da8175111c83d0ac76b86
MD5 2d56e3a9c9e7f44debc59736084d9d0e
BLAKE2b-256 acb16b027cc48896be214f0ac2031d0126019e11b250752585b6a0b130a79f2f

See more details on using hashes here.

Provenance

The following attestation bundles were made for sealevel-0.1.0.tar.gz:

Publisher: cli-publish.yml on e-man07/slm

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

File details

Details for the file sealevel-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: sealevel-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 33.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sealevel-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8502985a97ef7a31abffffc25c6a6527128ce75aa1e1fb8e9f81acaf62e90521
MD5 061b9ae12c60f80cecfb04b521785729
BLAKE2b-256 3b0aebd14e2f8631925c4ab2b6b466b8640b370e617d84686d39fde460d2c79d

See more details on using hashes here.

Provenance

The following attestation bundles were made for sealevel-0.1.0-py3-none-any.whl:

Publisher: cli-publish.yml on e-man07/slm

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