Registry / llm-agents / multion

multion

JSON →
library1.3.8pypypi✓ verified 83d ago

MultiOn provides an API and Python client for AI agents to perform real-world actions on web browsers. Current version 1.3.8 supports Python 3.8+ and integrates with browser automation for tasks like form filling, data extraction, and web navigation. The library is actively maintained with regular updates.

pip install multion
INSTALL
IMPORT
SIG · MULTION
M
multion
llm-agentspythonv1.3.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

MultiOn
from multion.client import MultiOn
import multion
The main class is in the client module; directly importing multion gives you the package root, not the client.

Initialize the MultiOn client. API key should be set as environment variable MULTION_API_KEY or passed directly.

from multion.client import MultiOn # Initialize client with your API key (set environment variable MULTION_API_KEY) import os client = MultiOn(api_key=os.environ.get('MULTION_API_KEY', ''))
Debug
Known issues
gotchaThe main import path changed; older examples show 'from multion import MultiOn' which no longer works in v1.3.x.
fix
Use 'from multion.client import MultiOn'
affects: >=1.3.0
gotchaWhen using browse() or act() methods, the session must be created with a valid URL; passing None or empty string may cause cryptic errors.
fix
Always provide a URL when calling create_session: client.create_session(url='https://example.com')
affects: all
deprecatedThe 'multion.tool' module (for LangChain integration) is deprecated and may be removed in future versions.
fix
Use the direct MultiOn client API instead of the LangChain tool wrapper.
affects: >=1.2.0
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'multion'
Package not installed or wrong Python environment.
fix
Run 'pip install multion' and ensure you're using the correct Python environment (virtualenv, conda, etc.).
ImportError: cannot import name 'MultiOn' from 'multion'
Incorrect import path; MultiOn class is in the client submodule.
fix
Use 'from multion.client import MultiOn'
multion.exceptions.AuthenticationError: Invalid API key
Missing or incorrect API key. The key must be set via environment variable MULTION_API_KEY or passed to the MultiOn constructor.
fix
Set MULTION_API_KEY environment variable or pass api_key='your_key' to MultiOn().
Upgrade
Version history
1.3.8latest on PyPI · released Oct 8, 2024
Audit
Dependencies
requestsrequiredHTTP client for API calls
Agent activity
17 hits · last 30 days
node
16
OpenAI (training)
1
Resources
multion — pip install multion · libregistry