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
↓ 7 callers
Function
useConversationWebSocket
()
frontend/src/contexts/conversation-websocket-context.tsx:996
↓ 7 callers
Function
useCreateConversation
()
frontend/src/hooks/mutation/use-create-conversation.ts:30
↓ 7 callers
Function
valid_conversation
( conversation_id: UUID, sandbox_record: SandboxRecord = Depends(valid_sandbox), app_conversation_
openhands/app_server/event_callback/webhook_router.py:296
↓ 7 callers
Method
validate_request
Verify Jira DC webhook signature.
enterprise/integrations/jira_dc/jira_dc_manager.py:242
↓ 6 callers
Method
_acp_info
(self, **overrides)
tests/unit/app_server/test_models.py:113
↓ 6 callers
Function
_assign_provider
Prefix a bare model name with its canonical provider. Models that already contain a ``/`` provider separator are returned unchanged. Bare nam
openhands/app_server/utils/llm.py:224
↓ 6 callers
Method
_build_repo_options
Build Slack options list from repositories. Returns up to 100 repositories formatted as Slack options (Slack has a 100 option limit f
enterprise/integrations/slack/slack_manager.py:403
↓ 6 callers
Function
_clone_marketplace_repo
Clone a marketplace repository to a temporary directory. Args: marketplace: MarketplaceRegistration with source, ref, and repo_path
openhands/app_server/user/skills_router.py:198
↓ 6 callers
Function
_comment_message
(*, body: str = 'Hey @openhands fix')
enterprise/tests/unit/integrations/bitbucket/test_bitbucket_manager.py:15
↓ 6 callers
Method
_container_to_sandbox_info
Convert Docker container to SandboxInfo.
openhands/app_server/sandbox/docker_sandbox_service.py:145
↓ 6 callers
Function
_create_sandbox_service_context_manager
Create an async context manager that yields the given sandbox service.
tests/unit/app_server/test_sandbox_secrets_router.py:70
↓ 6 callers
Method
_create_v1_conversation
Create conversation using the new V1 app conversation system.
enterprise/integrations/github/github_view.py:189
↓ 6 callers
Function
_current_cycle_start
(now: datetime, reset_day: int)
enterprise/server/services/org_budget_service.py:63
↓ 6 callers
Function
_dc_branch
(display_id='main', commit='abc123')
tests/unit/integrations/bitbucket_data_center/test_bitbucket_dc_branches.py:21
↓ 6 callers
Function
_deep_merge
( base: dict[str, Any], overrides: Mapping[str, Any] | None )
enterprise/migrations/versions/108_add_agent_settings_to_enterprise_settings.py:25
↓ 6 callers
Method
_delete_key_by_alias
Delete a key from LiteLLM by its alias. This is a best-effort operation that logs but does not raise on failure.
enterprise/storage/lite_llm_manager.py:1566
↓ 6 callers
Method
_extract_owner_and_repo
Extract owner and repo from repository string. Args: repository: Repository name in format 'project/repo_slug' Returns:
openhands/app_server/integrations/bitbucket_data_center/service/base.py:45
↓ 6 callers
Method
_fetch_paginated_data
Fetch data with pagination support for Bitbucket data center API. Args: url: The API endpoint URL params: Query param
openhands/app_server/integrations/bitbucket_data_center/service/base.py:153
↓ 6 callers
Method
_find_duplicate_in_users
Check if any user in the provided list matches the base email pattern. Filters users to find duplicates that match the base email pattern,
enterprise/server/auth/token_manager.py:686
↓ 6 callers
Method
_get_cached_value
Get a cached value from Redis. Returns the cached string value, or None if not cached or Redis unavailable. Falls back to DB
enterprise/server/services/automation_event_service.py:486
↓ 6 callers
Method
_get_headers
(self)
tests/unit/integrations/protocols/test_http_client.py:44
↓ 6 callers
Method
_get_or_create_settings
(self, org_id: UUID)
enterprise/server/services/org_budget_service.py:267
↓ 6 callers
Method
_get_process_status
Get the status of a process.
openhands/app_server/sandbox/process_sandbox_service.py:183
↓ 6 callers
Method
_get_runtime
(self, sandbox_id: str)
openhands/app_server/sandbox/remote_sandbox_service.py:230
↓ 6 callers
Method
_has_token_expired
Check if the token has expired based on HTTP status code.
openhands/app_server/integrations/protocols/http_client.py:61
↓ 6 callers
Method
_is_token_expired
Check if access and refresh tokens are expired. Args: access_token_expires_at: Expiration time for access token (seconds since ep
enterprise/storage/auth_token_store.py:34
↓ 6 callers
Function
_make_pr_message
(body: str = '@openhands please fix this')
enterprise/tests/unit/integrations/azure_devops/test_azure_devops_view.py:30
↓ 6 callers
Function
_make_work_item_message
(body: str = '@openhands please fix work item')
enterprise/tests/unit/integrations/azure_devops/test_azure_devops_view.py:71
↓ 6 callers
Method
_post_summary_to_jira
Post the summary back to the Jira issue.
enterprise/integrations/jira/jira_v1_callback_processor.py:216
↓ 6 callers
Function
_pr_comment_body
()
enterprise/tests/unit/integrations/bitbucket_data_center/test_bitbucket_dc_webhook.py:32
↓ 6 callers
Method
_process_to_sandbox_info
Convert process info to sandbox info.
openhands/app_server/sandbox/process_sandbox_service.py:200
↓ 6 callers
Method
_resolve_git_org
Resolve a Git organization name to an OpenHands org_id. Uses Redis caching with 1-hour TTL. Caches both positive and negative
enterprise/server/services/automation_event_service.py:347
↓ 6 callers
Method
_resolve_service_account_mentions
Best-effort bot identifiers (username + Jira key) for a picker mention. Returns the ids a [~...] token can carry; _comment_addresses_openhand
enterprise/integrations/jira_dc/jira_dc_manager.py:631
↓ 6 callers
Function
_secret_value
Navigate into settings.agent_settings and unwrap SecretStr values.
enterprise/tests/unit/test_saas_settings_store.py:19
↓ 6 callers
Method
_send_user_not_found_message
Send a message to the user informing them they need to create an OpenHands account. This method handles all supported trigger types:
enterprise/integrations/github/github_manager.py:165
↓ 6 callers
Function
_signed
(body: bytes, secret: str = 'shared-secret')
enterprise/tests/unit/integrations/bitbucket_data_center/test_bitbucket_dc_webhook.py:22
↓ 6 callers
Function
_strip_none_and_empty
(value: Any)
enterprise/migrations/versions/108_add_agent_settings_to_enterprise_settings.py:38
↓ 6 callers
Method
_sync_litellm_budgets
( self, org_id: UUID, settings: OrgBudgetSettings, overrides: list[OrgUserBudg
enterprise/server/services/org_budget_service.py:565
↓ 6 callers
Function
_to_providers
Extract unique providers, sorted with ``openhands`` first, then other verified providers alphabetically, then unverified providers alphabetically.
openhands/app_server/config_api/default_llm_model_service.py:90
↓ 6 callers
Function
_track_login_analytics_background
Track login analytics in background to avoid blocking auth response.
enterprise/server/routes/auth.py:185
↓ 6 callers
Method
_user
(email='invitee@example.com')
enterprise/tests/unit/test_org_invitation_service.py:829
↓ 6 callers
Method
_validate_org_version
Check if we need to update org version.
enterprise/storage/org_store.py:254
↓ 6 callers
Function
_validate_workspace_update_permissions
Validate that user can update the target workspace.
enterprise/server/routes/integration/jira.py:251
↓ 6 callers
Method
add_user_to_org
Add a user to an organization with a specific role.
enterprise/storage/org_member_store.py:28
↓ 6 callers
Method
backfill_contact_name
Update contact_name on the personal org if it still has a username-style value. Called during login to gradually fix existing users whose con
enterprise/storage/user_store.py:1038
↓ 6 callers
Function
batch_get_app_conversations
Get a batch of sandboxed conversations given their ids. Return None for any missing. Accepts UUIDs as strings (with or without dashes) and conver
openhands/app_server/app_conversation/app_conversation_router.py:327
↓ 6 callers
Method
blob
(self, path: str | None = None)
tests/unit/app_server/file_store/test_file_store.py:38
↓ 6 callers
Method
buildRuntimeUrl
* Build the full URL for V1 runtime-specific endpoints * @param conversationUrl The conversation URL (e.g., "http://localhost:54928/api/conversatio
frontend/src/api/conversation-service/v1-conversation-service.api.ts:29
↓ 6 callers
Function
createConversation
()
frontend/src/hooks/mutation/conversation-mutation-utils.test.ts:7
↓ 6 callers
Function
createMockWebClientConfig
( overrides: Partial<WebClientConfig> = {}, )
frontend/src/mocks/settings-handlers.ts:41
↓ 6 callers
Method
create_bitbucket_view_from_payload
Build a view from a webhook payload. ``keycloak_user_id`` is the OpenHands user that **installed** the webhook (looked up from the ``
enterprise/integrations/bitbucket/bitbucket_view.py:266
↓ 6 callers
Method
create_default_settings
( org_id: str, user_id: str, create_user: bool = True, add_user_to_litellm_tea
enterprise/storage/user_store.py:1169
↓ 6 callers
Function
create_mock_async_session
Factory to create properly mocked async session context manager.
enterprise/tests/unit/storage/test_jira_integration_store.py:25
↓ 6 callers
Method
create_or_update_conversation
Create or update a conversation and return the conversation ID.
enterprise/integrations/jira/jira_types.py:43
↓ 6 callers
Function
create_provider_tokens
Helper to create provider tokens as MappingProxyType.
enterprise/tests/unit/integrations/test_resolver_context.py:181
↓ 6 callers
Method
create_user
Create a new user. Identity-preservation contract (load-bearing for ``OrgStore.delete_org_cascade``): both ``Org.id`` and ``User.id``
enterprise/storage/user_store.py:68
↓ 6 callers
Method
create_verified_model
Create a new verified model. Args: model_name: The model identifier provider: The provider name is_enable
enterprise/server/verified_models/verified_model_service.py:144
↓ 6 callers
Method
create_view
Create a Jira view with repository already selected. This factory method: 1. Creates the view with payload and auth context 2
enterprise/integrations/jira/jira_view.py:461
↓ 6 callers
Method
delete_keycloak_user
Delete a user from Keycloak. This method is used to clean up user accounts that were created but should not exist (e.g., duplicate em
enterprise/server/auth/token_manager.py:791
↓ 6 callers
Method
delete_org_with_cleanup
Delete organization with complete cleanup of all associated data. This method performs the complete organization deletion workflow:
enterprise/storage/org_service.py:784
↓ 6 callers
Function
depends_user_context
()
openhands/app_server/config.py:575
↓ 6 callers
Function
effective_disabled_skills
Union of the member-level and launched-profile-level skill deny-lists. A skill disabled at EITHER level stays off. The member's deny-list rides
openhands/app_server/app_conversation/live_status_app_conversation_service.py:220
↓ 6 callers
Function
encrypt_value
(value: str | SecretStr)
enterprise/storage/encrypt_utils.py:16
↓ 6 callers
Method
encrypt_value
Encrypt a plaintext string using JWE. New data is always encrypted with JWE. Use :meth:`decrypt_value` to decrypt, which also handles
openhands/app_server/services/jwt_service.py:253
↓ 6 callers
Method
execute_graphql_query
( self, query: str, variables: dict[str, Any] )
openhands/app_server/integrations/github/service/base.py:97
↓ 6 callers
Method
getConversationUrl
* Get the url for the conversation. If
frontend/src/api/conversation-service/conversation-service.api.ts:34
↓ 6 callers
Function
getSchemaFields
(schema: SettingsSchema)
frontend/src/utils/sdk-settings-schema.ts:33
↓ 6 callers
Function
get_access_token
(request: Request)
openhands/app_server/user_auth/__init__.py:19
↓ 6 callers
Method
get_async_db_engine
(self)
openhands/app_server/services/db_session_injector.py:170
↓ 6 callers
Function
get_conversation_git_changes
Proxy ``GET /api/git/changes`` on the conversation's runtime.
openhands/app_server/app_conversation/app_conversation_router.py:1287
↓ 6 callers
Function
get_conversation_hooks
Get hooks currently configured in the workspace for this conversation. This endpoint loads hooks from the conversation's project directory in the
openhands/app_server/app_conversation/app_conversation_router.py:1447
↓ 6 callers
Function
get_current_workspace_link
Get current user's Jira DC integration details.
enterprise/server/routes/integration/jira_dc.py:1164
↓ 6 callers
Function
get_default_llm_base_url
Return the deployment default LLM base URL.
enterprise/server/constants.py:190
↓ 6 callers
Function
get_default_llm_model
Return the deployment default LLM model.
enterprise/server/constants.py:183
↓ 6 callers
Function
get_default_org_config
()
enterprise/storage/default_org_service.py:53
↓ 6 callers
Method
get_first_owner_in_org
Get the first owner in an organization who accepted the Terms of Service. This user is considered the super admin for that org in self-hosted
enterprise/storage/user_store.py:1010
↓ 6 callers
Method
get_keycloak_tokens
( self, code: str, redirect_uri: str )
enterprise/server/auth/token_manager.py:112
↓ 6 callers
Method
get_kwargs_from_settings
(settings: Settings)
enterprise/storage/org_store.py:479
↓ 6 callers
Method
get_or_create_system_api_key
Get or create a system API key for a user on behalf of an internal service. If a key with the given name already exists for this user/org and
enterprise/storage/api_key_store.py:140
↓ 6 callers
Method
get_paginated_repos
Get a page of repositories for the authenticated user
openhands/app_server/integrations/service_types.py:278
↓ 6 callers
Method
get_pr_title_and_body
Get the title and description of a pull request. Args: workspace: Bitbucket workspace slug. repo_slug: Repository slu
openhands/app_server/integrations/bitbucket/service/resolver.py:10
↓ 6 callers
Function
get_project_dir
Get the project root directory for a conversation. When a repository is selected, the project root is the cloned repo directory at {working_d
openhands/app_server/app_conversation/app_conversation_service_base.py:56
↓ 6 callers
Method
get_provider_tokens
Return provider tokens. Args: as_env_vars: When True, return a ``dict[str, str]`` mapping env var names (e.g. ``g
openhands/app_server/user/auth_user_context.py:87
↓ 6 callers
Method
get_provider_tokens
(self)
enterprise/server/auth/saas_user_auth.py:524
↓ 6 callers
Function
get_saas_user_auth
( keycloak_user_id: str, token_manager: TokenManager )
enterprise/integrations/v1_utils.py:86
↓ 6 callers
Method
get_sandbox_spec
Get a single sandbox spec, returning None if not found.
openhands/app_server/sandbox/sandbox_spec_service.py:54
↓ 6 callers
Method
get_shared_event
Given a conversation_id and event_id, retrieve an event if the conversation is shared.
enterprise/server/sharing/shared_event_service.py:20
↓ 6 callers
Function
get_summary_instruction
()
enterprise/integrations/utils.py:141
↓ 6 callers
Method
get_user_by_email
Get user by email address. This method looks up a user by their email address. Note that email addresses may not be unique across all
enterprise/storage/user_store.py:804
↓ 6 callers
Function
get_user_id
Get the current user_id. Used for dependency injection - the api key header is used here to signal the requirement in OpenAPI docs
openhands/app_server/user_auth/__init__.py:25
↓ 6 callers
Method
get_user_id_from_user_email
(self, email: str)
enterprise/server/auth/token_manager.py:624
↓ 6 callers
Function
get_user_proactive_conversation_setting
Get the user's proactive conversation setting. Args: user_id: The keycloak user ID Returns: True if proactive conversations
enterprise/integrations/github/github_view.py:49
↓ 6 callers
Method
get_webhooks_by_resources
Bulk fetch webhooks for multiple resources. This is more efficient than fetching one at a time in a loop. Args: project_
enterprise/storage/gitlab_webhook_store.py:251
↓ 6 callers
Function
gitlab_callback_processor
()
enterprise/tests/unit/integrations/gitlab/test_gitlab_v1_callback_processor.py:39
↓ 6 callers
Function
handleAuthRedirect
(redirectUrl: string)
frontend/src/components/features/auth/login-content.tsx:84
↓ 6 callers
Function
handleCaptureConsent
( posthog: PostHog | undefined, consent: boolean, )
frontend/src/utils/handle-capture-consent.ts:8
↓ 6 callers
Function
handle_callback_error
Handle callback processing errors with appropriate logging and user messages. This centralizes the error handling logic for V1 callback processor
enterprise/integrations/v1_utils.py:27
↓ 6 callers
Function
infer_repo_from_message
Extract repository names as 'owner/repo' from URLs and direct mentions. Supports cloud and self-hosted Git providers: GitHub / GitHub Enterprise,
enterprise/integrations/utils.py:173
↓ 6 callers
Method
is_system_key_name
Check if a key name indicates a system key.
enterprise/storage/api_key_store.py:68
↓ 6 callers
Method
is_token_expired
Check if an invitation token has expired. Args: invitation: The invitation to check Returns: bool: True if e
enterprise/storage/org_invitation_store.py:252
← previous
next →
501–600 of 10,856, ranked by callers