Skip to content

The micro-VM for AI agents — light enough to embed on your laptop, elastic enough to power an agentic cloud.

584 B
Raw Blame
/*
 * Copyright 2025 Daytona Platforms Inc.
 * Modified by BoxLite AI, 2025-2026
 * SPDX-License-Identifier: AGPL-3.0
 */

import type { AccountProvider } from '@boxlite-ai/api-client'
import { useQuery } from '@tanstack/react-query'
import { useApi } from '../useApi'
import { queryKeys } from './queryKeys'

export const useAccountProvidersQuery = () => {
  const { userApi } = useApi()

  return useQuery<AccountProvider[]>({
    queryKey: queryKeys.user.accountProviders(),
    queryFn: async () => userApi.getAvailableAccountProviders().then((response) => response.data),
  })
}