Skip to main content

llm-iaedu

Plugin for LLM that enables using the iaedu.pt API as a model — no adapter, no Docker.

Quick Start

Linux / macOS

# Install
pip install llm-iaedu

# Configure credentials (Endpoint, API Key, Channel ID)
llm-iaedu configure

# Ask anything
llm -m iaedu "What is the capital of Portugal?"

# Optional — make iaedu the default model:
llm models default iaedu
llm "What is the capital of Portugal?"

Ubuntu / Debian (PEP 668)

Ubuntu 23.04+ blocks system-wide pip install. Use one of:

Option 1: pipx (if you already pipx install llm):

# Install plugin into llm's venv
pipx inject llm llm-iaedu

# One-time setup — paste 3 values from iaedu.pt:
llm iaedu-configure

# That's it — no need for `llm keys set iaedu`
llm -m iaedu "What is the capital of Portugal?"

To upgrade after install:

pipx runpip llm install --upgrade llm-iaedu

Option 2: Virtual environment:

python3 -m venv venv
source venv/bin/activate
pip install llm-iaedu
llm-iaedu configure
llm -m iaedu "What is the capital of Portugal?"

Option 3: From git clone:

git clone https://github.com/rodolfomatos/llm-iaedu.git
cd llm-iaedu
make ubuntu-setup   # shows instructions
make configure      # interactive credential setup
make check          # verify everything works

Setup

Quick (interactive) — one step

# From git clone (has Makefile):
make configure

# From pip install (no repo):
llm-iaedu configure

# From pipx inject (llm subcommand):
llm iaedu-configure

Paste the three values from iaedu.pt (Endpoint URL, API Key, Channel ID) when prompted. The script creates ~/.config/iaedu/env with everything needed — no llm keys set iaedu required, works from any directory.

Manual

Create ~/.config/iaedu/env:

IAEDU_ENDPOINT=https://api.iaedu.pt/agent-chat/api/v1/agent/your-agent-id/stream
IAEDU_CHANNEL_ID=your-channel-id
IAEDU_API_KEY=your-api-key

Or place a .env in any project directory for local config.

Config Precedence

  1. Current shell (export IAEDU_*)
  2. ./.env (local)
  3. ~/.config/iaedu/env (global)
  4. ~/.iaedu.env (legacy)

Usage

# One-off
llm -m iaedu "What is the capital of Portugal?"

# Default model (just skip -m)
llm models default iaedu
llm "What is the capital of Portugal?"

# Interactive chat
llm chat -m iaedu

# Pipe input
cat file.txt | llm -m iaedu

Development

git clone https://github.com/rodolfomatos/llm-iaedu.git
cd llm-iaedu

# Standard
make setup
# ... or Ubuntu/Debian:
make ubuntu-setup
# ... or pipx:
make pipx-setup

make configure
make check

How it works

The plugin calls the iaedu.pt API directly — no adapter server required. It loads config from environment variables or .env files, sends prompts as multipart form data, and streams token responses.

Requirements

  • Python 3.8+
  • llm CLI
  • iaedu.pt account with API key, channel ID, and agent ID

Project

Metadata

Release files for llm-iaedu 0.5

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

Source distribution (sdist)

Source distribution for llm-iaedu 0.5
File Size Uploaded Provenance
llm_iaedu-0.5.tar.gz 5.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for llm-iaedu 0.5
File Interpreter ABI Platform
llm_iaedu-0.5-py3-none-any.whl Python 3 none any Details

Total release size: 11.6 kB

Release files / llm_iaedu-0.5.tar.gz

Download URL llm_iaedu-0.5.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
aa448144f11848acb87096614eeb4f9c91d01b718884c9623004ef7b05309642
BLAKE2b-256 checksum
How to use checksums
dfc2d927b24998f68cad2c5f99abddbf03a9b2628a2b8f95a86b7f4da6dfb69a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release files / llm_iaedu-0.5-py3-none-any.whl

Download URL llm_iaedu-0.5-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
13e53565ca2f627262133afbff9638278cc4cbbeb15996bb6c78360db05e19c1
BLAKE2b-256 checksum
How to use checksums
209f228c615be1b3a629d75cbae4130452bc825ad031256f976e54d5b45d1e5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Security for llm-iaedu 0.5

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.

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