Docs/SDK/Installation

Installation

Install the Sentience SDK for Python or TypeScript. Both SDKs provide the same functionality and work with Playwright for browser automation.

Python SDK

pip install sentienceapi
playwright install chromium

Requirements

Verify Installation

python -c "from sentience import SentienceBrowser; print('SDK installed!')"
# Output: SDK installed!

View Python SDK on GitHub →

TypeScript SDK

Requirements

View TypeScript SDK on GitHub →

Get Your API Key

To use server-side features (importance ranking, smart filtering), you'll need an API key:

  1. Sign up at www.sentienceapi.com
  2. Navigate to API Keys section in your dashboard
  3. Create a new API key (starts with sk_)
  4. Set it as an environment variable or pass it to the SDK

Environment variable (recommended):

export SENTIENCE_API_KEY="sk_..."

Free Tier Available

You can use the SDK without an API key for both local & cloud based processing with your free credits:

Upgrade to Pro, Builder, Teams, or Enterprise tier when you need production-grade ranking and filtering.

Troubleshooting

"Extension failed to load"

The Sentience extension should be automatically loaded. If you see this error:

"ModuleNotFoundError" (Python)

Make sure you're using the correct Python environment:

python --version  # Check Python version
pip --version     # Check pip is available
pip install sentienceapi  # Install in current environment

Need more help?

Check out our example repository or contact support.

Next Steps