MultiOn

raw JSON →
1.3.8 verified Sat May 09 auth: no python

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
error ModuleNotFoundError: No module named 'multion'
cause Package not installed or wrong Python environment.
fix
Run 'pip install multion' and ensure you're using the correct Python environment (virtualenv, conda, etc.).
error ImportError: cannot import name 'MultiOn' from 'multion'
cause Incorrect import path; MultiOn class is in the client submodule.
fix
Use 'from multion.client import MultiOn'
error multion.exceptions.AuthenticationError: Invalid API key
cause 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().
gotcha The 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'
gotcha When 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')
deprecated The '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.

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', ''))