Onlook 中文网

外部服务

【External Services】

Onlook 需要若干外部服务来提供其功能。每个服务都可以在 Apache 2.0 或同等宽松的许可下自行托管。

【Onlook requires several external services to provide its features. Each of these services is self-hostable under Apache 2.0 or equivalently permissive licenses.】

自托管外部服务

【Self-hosting External Services】

如需自托管这些服务的帮助,请通过 founders@onlook.com 联系我们。

【For assistance with self-hosting these services, please contact us at founders@onlook.com.】

1. Supabase

2. 沙箱提供商

【2. Sandbox Providers】

  • 对于可扩展的部署,请使用他们的自托管指南将 E2B 部署到 GCP。
  • 对于单机部署,我们将来会添加一个完全本地的沙箱提供程序。

3. 人工智能提供商

【3. AI Providers】

配置自定义 AI 提供商:

【To configure custom AI providers:】

  1. 更新 packages/ai/src/chat/providers.ts 中的提供者。我们已经支持 Anthropic 和 OpenRouter 作为示例。你可以按照相同的格式添加新的提供者。
  2. 通过搜索 initModel 来更新用法
  3. apps/web/client/.env 文件中更新你的 API 密钥为提供商期望的 API 密钥。

注意:我们支持来自AI SDK 提供商的任何提供商。你可以通过以下 AI SDK 提供商指南添加自定义提供商:兼容 OpenAI社区

【Note: We support any provider from the AI SDK providers. You can add a custom provider by following these AI SDK provider guides: OpenAI compatible and Community.】