Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenHands/OpenHands
/ functions
Functions
10,856 in github.com/OpenHands/OpenHands
⨍
Functions
10,856
◇
Types & classes
2,162
↳
Endpoints
725
↓ 10 callers
Function
validate_secret_name
Validate that a secret name is allowed. Args: name: The secret name to validate Raises: ValueError: If the name is blocked (
openhands/app_server/constants.py:97
↓ 10 callers
Method
verify_key
Verify that a key is valid in LiteLLM by making a lightweight API call. Args: key: The key to verify user_id: The use
enterprise/storage/lite_llm_manager.py:1372
↓ 10 callers
Function
verify_webhook_conditions
Verify all conditions are met for webhook installation. Raises BreakLoopException if any condition fails or rate limited. Args:
enterprise/integrations/gitlab/webhook_installation.py:41
↓ 9 callers
Method
_add_user_to_team
Add a user to a team in LiteLLM. Args: client: The HTTP client to use. keycloak_user_id: The user's Keycloak ID.
enterprise/storage/lite_llm_manager.py:1137
↓ 9 callers
Function
_build_integration_test_app
Build a minimal FastAPI app with the real user and sandbox routers. The ``depends_user_context`` dependency is overridden with a mock, but the
tests/unit/app_server/test_sandbox_secrets_router.py:505
↓ 9 callers
Method
_construct_initial_message_with_plugin_params
Incorporate plugin parameters into the initial message if specified. Plugin parameters are formatted and appended to the initial message so t
openhands/app_server/app_conversation/live_status_app_conversation_service.py:1468
↓ 9 callers
Method
_container_to_checked_sandbox_info
(self, container)
openhands/app_server/sandbox/docker_sandbox_service.py:238
↓ 9 callers
Method
_create_user
Create a user in LiteLLM. Returns True if the user was created or already exists and is verified, False if creation failed and user d
enterprise/storage/lite_llm_manager.py:823
↓ 9 callers
Function
_get_clean_env
Get a base environment dict with essential system vars preserved.
tests/unit/app_server/test_config_event_service_selection.py:27
↓ 9 callers
Function
_make_message
( *, body: str, anchor: dict | None = None, event_key: str = 'pr:comment:added', parent_id
enterprise/tests/unit/integrations/bitbucket_data_center/test_bitbucket_dc_view.py:29
↓ 9 callers
Function
_make_message_event
()
enterprise/tests/unit/test_sharing/test_shared_event_filtering.py:32
↓ 9 callers
Function
_patch_stores
(async_session_maker)
enterprise/tests/unit/test_user_store.py:2108
↓ 9 callers
Method
_send_to_automation_service
( self, provider: ProviderType, org_id: UUID, payload: dict[str, Any], )
enterprise/server/services/automation_event_service.py:543
↓ 9 callers
Function
_should_redirect_to_onboarding
Check if user should be redirected to onboarding after TOS acceptance. Backend always redirects applicable users to /onboarding. Returns True
enterprise/server/routes/auth.py:821
↓ 9 callers
Method
batch_get_sandboxes
Get a batch of sandboxes, returning None for any which were not found.
openhands/app_server/sandbox/sandbox_service.py:65
↓ 9 callers
Function
build_org_configs
Build the list of global org/user skill-repo configs for the agent-server. Skills are loaded for every conversation regardless of repository sele
openhands/app_server/app_conversation/skill_loader.py:273
↓ 9 callers
Method
check_byor_export_enabled
Check if BYOR export is enabled for an organization. Args: user_id: User ID (used only as fallback to look up the user's
enterprise/storage/org_service.py:845
↓ 9 callers
Function
complete_onboarding
Mark onboarding as completed for the current user and fire analytics. Persists ``user.onboarding_completed = True`` and emits the ``onboardin
enterprise/server/routes/auth.py:1034
↓ 9 callers
Method
create_api_key
Create a new API key for a user. Args: user_id: The ID of the user to create the key for name: Optional name for the
enterprise/storage/api_key_store.py:80
↓ 9 callers
Function
device_verification_authenticated
Process device verification for authenticated users (called by frontend).
enterprise/server/routes/oauth_device.py:243
↓ 9 callers
Method
get_agent_settings_from_org
(org: Org)
enterprise/storage/org_store.py:80
↓ 9 callers
Function
get_conversation_link
Appends a followup link, in the PR body, to the OpenHands conversation that opened the PR
openhands/app_server/mcp/mcp_router.py:78
↓ 9 callers
Method
get_db_engine
(self)
openhands/app_server/services/db_session_injector.py:217
↓ 9 callers
Function
get_default_litellm_model
Construct proxy for litellm model based on user settings if not set explicitly.
enterprise/server/constants.py:166
↓ 9 callers
Method
get_idp_token_from_offline_token
( self, offline_token: str, idp: ProviderType )
enterprise/server/auth/token_manager.py:563
↓ 9 callers
Function
get_jwt_service
()
enterprise/storage/encrypt_utils.py:26
↓ 9 callers
Function
get_keycloak_admin
Returns a singleton instance of KeycloakAdmin based on the 'external' flag.
enterprise/server/auth/keycloak_manager.py:35
↓ 9 callers
Function
get_keycloak_openid
Returns a singleton instance of KeycloakOpenID based on the 'external' flag.
enterprise/server/auth/keycloak_manager.py:20
↓ 9 callers
Method
get_org_credits
Get organization credits from LiteLLM team. Args: user_id: User ID org_id: Organization ID Returns:
enterprise/storage/org_service.py:610
↓ 9 callers
Method
get_org_info
Get organization info for the current user. Lazily loads and caches organization data including: - org_id: Current organization ID
enterprise/server/auth/saas_user_auth.py:647
↓ 9 callers
Function
get_org_members
Get all members of an organization with pagination and optional email filter. This endpoint retrieves a paginated list of organization members. A
enterprise/server/routes/orgs.py:848
↓ 9 callers
Method
get_provider_env_key
Map ProviderType value to the environment variable name in the runtime
openhands/app_server/integrations/provider.py:407
↓ 9 callers
Method
get_user_by_active_workspace
Get Jira user by Keycloak user ID.
enterprise/storage/jira_integration_store.py:132
↓ 9 callers
Method
get_user_resources_with_admin_access
Get all projects and groups where the current user has admin access (maintainer or owner). Returns: tuple[list[dict], li
enterprise/integrations/gitlab/gitlab_service.py:587
↓ 9 callers
Function
get_version
()
openhands/app_server/version.py:7
↓ 9 callers
Method
get_workspace_by_id
Retrieve workspace by ID.
enterprise/storage/jira_integration_store.py:114
↓ 9 callers
Method
handle_http_error
Handle general HTTP errors.
openhands/app_server/integrations/protocols/http_client.py:101
↓ 9 callers
Method
identify_user
Identify a user and their org memberships in PostHog. Consolidates the duplicated ``set_person_properties`` + ``group_identify`` patt
openhands/analytics/analytics_service.py:463
↓ 9 callers
Method
is_pr_comment
(message: Message)
enterprise/integrations/github/github_view.py:584
↓ 9 callers
Method
load
Load secrets.
openhands/app_server/secrets/secrets_store.py:23
↓ 9 callers
Function
load_module
()
tests/unit/test_enterprise_migration_integrity.py:14
↓ 9 callers
Function
make_service
()
tests/unit/integrations/bitbucket_data_center/test_bitbucket_dc_prs.py:13
↓ 9 callers
Function
mutateWithToast
( mutation: UseMutationResult<TData, Error, TVariables>, variables: TVariables, messages: ToastMessages<
frontend/src/utils/mutate-with-toast.ts:16
↓ 9 callers
Method
resume_sandbox
(self, sandbox_id: str)
tests/unit/app_server/test_sandbox_service.py:61
↓ 9 callers
Function
save_agent_profile
Create or update an agent profile under ``name`` (path name is authoritative). Server-managed id/revision: overwrite keeps the namesake's id and
enterprise/server/routes/agent_profiles.py:256
↓ 9 callers
Method
start_sandbox
Start a new sandbox.
openhands/app_server/sandbox/docker_sandbox_service.py:385
↓ 9 callers
Function
success_callback
(session_id: str, request: Request)
enterprise/server/routes/billing.py:243
↓ 9 callers
Method
update_conversation_statistics
Update conversation statistics from stats event data. Args: conversation_id: The ID of the conversation to update sta
openhands/app_server/app_conversation/sql_app_conversation_info_service.py:437
↓ 9 callers
Method
update_org_app_settings
Update organization app settings. Only updates fields that are explicitly provided in update_data. Uses flush() - commit happens at r
enterprise/storage/org_app_settings_store.py:97
↓ 9 callers
Function
usePermission
(role: OrganizationUserRole)
frontend/src/hooks/organizations/use-permissions.ts:5
↓ 9 callers
Function
useSaveSettings
(scope: SettingsScope = "personal")
frontend/src/hooks/mutation/use-save-settings.ts:73
↓ 8 callers
Function
_agent_value
Navigate into settings.agent_settings using a dot-separated key.
enterprise/tests/unit/test_lite_llm_manager.py:27
↓ 8 callers
Function
_build_client
(with_inner_cors: bool = False)
enterprise/tests/unit/test_api_key_aware_cors_middleware.py:30
↓ 8 callers
Method
_build_repo_api_url
(self, owner: str, repo: str, *segments: str)
openhands/app_server/integrations/forgejo/service/base.py:204
↓ 8 callers
Method
_can_update_member_role
Check if requester can change target's role to new_role. Permission rules: - Owners can modify anyone (including other owners), can s
enterprise/server/services/org_member_service.py:362
↓ 8 callers
Method
_check_all_sizes
(self, text: str)
tests/unit/utils/test_chunk_localizer.py:505
↓ 8 callers
Method
_create_team
Create a new team in LiteLLM. Args: client: The HTTP client to use. team_alias: The alias for the team. t
enterprise/storage/lite_llm_manager.py:679
↓ 8 callers
Method
_get_models_response
( self, verified_models: list[str] | None = None, )
enterprise/server/verified_models/litellm_proxy_model_router.py:222
↓ 8 callers
Function
_get_post_auth_redirect
Determine where to redirect user after authentication completes. Called after offline token is stored to determine final redirect destination.
enterprise/server/routes/auth.py:856
↓ 8 callers
Function
_make_get_httpx_client
(get_return=None, get_side_effect=None)
tests/unit/app_server/test_app_conversation_router.py:818
↓ 8 callers
Function
_make_mock_sandbox
Create a mock SandboxInfo for testing.
tests/unit/app_server/test_send_message_endpoint.py:47
↓ 8 callers
Function
_make_mock_service
Create a mock PendingMessageService for testing.
tests/unit/app_server/test_pending_message_router.py:22
↓ 8 callers
Method
_make_provider_handler
Build a mock ProviderHandler. Args: logins: Mapping of ProviderType -> account login. orgs: Optional mapping of Provi
tests/unit/app_server/test_skill_loader.py:168
↓ 8 callers
Function
_make_service_mock
Create a mock service that passes the isinstance check and returns the desired values.
tests/unit/app_server/test_app_conversation_skills_endpoint.py:33
↓ 8 callers
Function
_make_settings_with_profile
Build a Settings instance carrying one named LLM profile.
tests/unit/app_server/test_app_conversation_router.py:396
↓ 8 callers
Function
_mock_jwt_decode
Patch get_jwt_service so verify_jws_token returns a controlled payload.
enterprise/tests/unit/test_auth_middleware.py:22
↓ 8 callers
Method
_project_base_url
(self, org: str, project: str)
openhands/app_server/integrations/azure_devops/service/base.py:71
↓ 8 callers
Function
_request_with_body
(body: bytes)
enterprise/tests/unit/integrations/bitbucket_data_center/test_bitbucket_dc_webhook.py:26
↓ 8 callers
Method
_resolve_active_agent_profile
Resolve an agent profile into an ``agent_settings`` dump. Resolves ``override_agent_profile_id`` when given (a one-off, non-persisted
enterprise/storage/saas_settings_store.py:149
↓ 8 callers
Method
_secure_select
(self)
openhands/app_server/sandbox/remote_sandbox_service.py:216
↓ 8 callers
Function
_seed_org
Create a shared org so seeded users satisfy the non-null FK.
enterprise/tests/unit/test_user_store.py:2081
↓ 8 callers
Function
_seed_user
Insert a User row with the given super ``role_id`` and return its id.
enterprise/tests/unit/test_user_store.py:2090
↓ 8 callers
Function
_setup_happy_path_services
( mock_get_app_conversation_info_service, mock_get_sandbox_service, mock_get_httpx_client, app
enterprise/tests/unit/integrations/github/test_github_v1_callback_processor.py:128
↓ 8 callers
Method
_split_repo
(self, repository: str)
openhands/app_server/integrations/forgejo/service/base.py:192
↓ 8 callers
Method
_to_sandbox_info
( self, stored: StoredRemoteSandbox, runtime: dict[str, Any] | None = None )
openhands/app_server/sandbox/remote_sandbox_service.py:142
↓ 8 callers
Function
_validate_workspace_update_permissions
Validate that user can update the target workspace.
enterprise/server/routes/integration/jira_dc.py:367
↓ 8 callers
Method
_verify_existing_key
Check if an existing key exists for the user/org in LiteLLM. Verifies the provided key_value matches a key registered in LiteLLM for
enterprise/storage/lite_llm_manager.py:1510
↓ 8 callers
Function
async_session_maker
Create an async session maker for testing.
enterprise/tests/unit/test_role_store.py:31
↓ 8 callers
Method
authenticate_user
( self, slack_user_id: str )
enterprise/integrations/slack/slack_manager.py:88
↓ 8 callers
Function
bitbucket_dc_connection_events
( connection_id: int, request: Request, background_tasks: BackgroundTasks, x_hub_signature: st
enterprise/server/routes/integration/bitbucket_dc.py:727
↓ 8 callers
Method
check_duplicate_base_email
Check if a user with the same base email already exists. This method checks for duplicate signups using email + modifier. It checks i
enterprise/server/auth/token_manager.py:739
↓ 8 callers
Function
collect_message_attachment_content
Download and convert Slack file attachments attached to a message.
enterprise/integrations/slack/slack_attachments.py:64
↓ 8 callers
Method
create_org_with_owner
Create a new organization, optionally with the specified user as owner. This method orchestrates the complete organization creation
enterprise/storage/org_service.py:193
↓ 8 callers
Method
create_pr
Creates a PR using user credentials Args: repo_name: The full name of the repository (owner/repo) source_branch: The
openhands/app_server/integrations/github/service/prs.py:11
↓ 8 callers
Function
create_sandbox_info
Helper function to create SandboxInfo objects for testing.
tests/unit/app_server/test_sandbox_service.py:71
↓ 8 callers
Function
create_sandbox_service_context_manager
Create an async context manager that yields the given sandbox service.
tests/unit/app_server/test_webhook_router_auth.py:57
↓ 8 callers
Method
decrypt_value
Decrypt a ciphertext string, trying JWE first then legacy Fernet. During the migration from Fernet to JWE, persisted data may be encr
openhands/app_server/services/jwt_service.py:261
↓ 8 callers
Function
deep_merge_with_wholesale_keys
Like deep_merge, but specified keys are replaced wholesale (not merged). Useful for keys like 'mcp_config' where the dict represents a set of ite
openhands/app_server/utils/jsonpatch_compat.py:31
↓ 8 callers
Method
delete_org_cascade
Delete organization and all associated data in cascade, including external LiteLLM cleanup. Users that belong to the org being deleted are ha
enterprise/storage/org_store.py:521
↓ 8 callers
Function
device_token
Poll for a token until the user authorizes or the code expires.
enterprise/server/routes/oauth_device.py:126
↓ 8 callers
Function
ensure_running_sandbox
Ensure sandbox exists, is running, and has a session API key.
openhands/app_server/event_callback/util.py:30
↓ 8 callers
Method
execute_request
Execute an HTTP request using the provided client.
openhands/app_server/integrations/protocols/http_client.py:65
↓ 8 callers
Method
export_conversation
Download a conversation trajectory as a zip file. Args: conversation_id: The UUID of the conversation to download. This
openhands/app_server/app_conversation/app_conversation_service.py:160
↓ 8 callers
Function
extractErrorMessage
(err: unknown, fallback: string)
frontend/src/utils/extract-error-message.ts:7
↓ 8 callers
Function
extractModelAndProvider
(model: string)
frontend/src/utils/extract-model-and-provider.ts:12
↓ 8 callers
Method
filter
(self, record: logging.LogRecord)
openhands/app_server/utils/logger.py:558
↓ 8 callers
Method
get_authorization_type
Get the authorization type for the given email and provider. Checks matching authorization rules and returns the effective authorization
enterprise/storage/user_authorization_store.py:77
↓ 8 callers
Function
get_base_email_regex_pattern
Generate a regex pattern to match emails with the same base. For base_email "joe@example.com", the pattern will match: - joe@example.com
enterprise/server/auth/email_validation.py:83
↓ 8 callers
Function
get_conversation_skills
Get all skills associated with the conversation. This endpoint returns all skills that are loaded for the v1 conversation. Skills are loaded
openhands/app_server/app_conversation/app_conversation_router.py:1348
↓ 8 callers
Function
get_deployment_mode
Get deployment mode. Honors an explicit OH_DEPLOYMENT_MODE ('cloud' | 'self_hosted'); otherwise infers from OH_WEB_HOST/WEB_HOST (managed dom
openhands/app_server/web_client/web_client_deployment_mode.py:8
← previous
next →
301–400 of 10,856, ranked by callers