How authentication works in Open SWE
/settings
for updating GitHub authenticationapps/web/src/app/api/[..._path]/route.ts
) that acts as an intermediary for all LangGraph server requests. This proxy uses the langgraph-nextjs-api-passthrough
package to handle request forwarding with enhanced security.
x-github-access-token
- User’s GitHub access token for user-specific actions (creating issues, comments)x-github-installation-token
- GitHub App installation token for app-level actions (commits, pull requests)x-github-installation-name
- Installation name (username or organization name)x-
to ensure they’re included in LangGraph run configurations, making them accessible during execution while maintaining security through encryption.SECRETS_ENCRYPTION_KEY
environment variable and includes:
apps/open-swe/src/security/auth.ts
) that validates all incoming requests.
X-Hub-Signature-256
header:
x-github-installation-name
)x-github-installation-token
)x-github-access-token
)x-github-user-id
, x-github-user-login
)SECRETS_ENCRYPTION_KEY
environment variable is identical between your web application and LangGraph agent deployments.