Anon provides developers with flexible options for running browser sessions, catering to various needs from local development to production deployment.

This flexibility allows you to choose the most suitable environment for your automation tasks while leveraging Anon’s powerful features.

Here are the most common hosting options for running Anon automations:

Local sessions

Running sessions locally is ideal for debugging and development purposes.

This option gives you complete control over the execution environment and allows for easy integration with your existing development workflow.

const { browserContext } = await setupAnonBrowserWithContext(
  client,
  account,
  { type: "local", input: { headless: false, isAnonProxyEnabled: true } },
);

Local sessions can be configured with or without Anon’s proxy, and you can specify additional Playwright launch options as needed.

Remote sessions

For developers who prefer to use their own infrastructure or third-party providers like Browserbase or Bright Data, Anon offers a remote session option.

This allows you to host Playwright sessions on your chosen platform while still benefiting from Anon’s SDK.

const { browserContext } = await setupAnonBrowserWithContext(
  client,
  account,
  {
    type: "remote",
    input: `wss://connect.browserbase.com?apiKey=${process.env.BROWSERBASE_API_KEY}`,
  },
);

Remote sessions provide flexibility in choosing your hosting solution while maintaining compatibility with Anon’s automation capabilities.

Managed Sessions

For maximum convenience and access to all of Anon’s out-of-the-box stealth features and proxies, developers can opt for managed sessions.

This option deploys your sessions using Anon’s technology plus best-in-class infrastructure partners.

We leverage Browserbase for hosted browser sessions and leverage a myriad of proxy providers to deliver the most relevant proxy for each situation.

The result is a hassle-free solution that doesn’t require you to build or select hosting infrastructure.

const { browser } = await setupAnonBrowserWithContext(
  client,
  account,
  { type: "managed", input: { }, },
);

Managed sessions offer:

  • Automatic access to Anon’s advanced Stealth Features
  • Built-in geo-targeted proxy selection
  • Integrated captcha-solving capabilities
  • Optimized performance and reliability

This option is ideal for developers who want to focus on building their automation logic without worrying about the underlying infrastructure.

Choosing the Right Option

  • Use local sessions for development, debugging, and testing.
  • Opt for remote sessions if you have specific infrastructure requirements or prefer to use a particular hosting provider.
  • Choose managed sessions for production deployments, maximum stealth capabilities, and seamless integration with all of Anon’s advanced features.

By offering these flexible hosting options, Anon empowers developers to create, test, and deploy their automation scripts in the environment that best suits their needs, all while leveraging the power of Anon’s robust automation platform.