Set up Google Cloud for prior art search
Use your Google account to search public U.S. patent publications and save results in your own private Google Cloud bucket. PatentTools charges $0. Google bills your project for the resources you use.
1. Create a project and link your billing account
You need a Google account and an active Google Cloud billing account. Personal Gmail works. If your organization manages Google Cloud, ask its cloud administrator to complete the billing and Cloud Shell steps. The researcher can then sign in without administrator privileges.
- Open Create a project. Choose a project dedicated to this work, or use an existing one your administrator approves. Copy the project ID from the project selector. It looks like
my-research-4827. The display name and numeric project number are different. - Open Billing → My projects. Find that exact project ID and confirm it is linked to the account that should pay Google. If this is your first billing account, follow Google’s prompts to create one and add a payment method. Google’s billing instructions
- Choose a new, globally unique bucket name, for example your project ID followed by
-prior-art. A bucket holds the search files. Use 3–63 lowercase letters, digits or hyphens, beginning and ending with a letter or digit. Keep case names and client information out of this publicly visible name. Google’s bucket naming rules
2. Sign in as the researcher
Choose Sign in with Google using the account that will search. On Connect your Google Cloud project, check the displayed Workspace, then enter your project ID and bucket name. Enter the name alone, without gs://.
Who gets access? A personal connection belongs to that Google account. For a managed Google Workspace domain, signed-in members of the same domain who know the project and bucket can use the connection, incur charges and reopen saved work. Use a dedicated bucket with contents suitable for that group.
3. Have the administrator run the setup commands once
- In the workspace, expand First-time administrator setup and choose Copy my setup commands. The workspace fills in all four values, including its
pt-service account name and the PatentTools broker email. If copying is unavailable, select the entire command block and copy it manually. - Open Google Cloud Shell, Google’s browser-based terminal. If an administrator is helping, give them the command block and let them open Cloud Shell with their own account. Confirm the account shown in Cloud Console, review the project and bucket names at the top of the block, and authorize Cloud Shell when Google asks.
- Paste the entire block into the Bash terminal, press Enter and wait for Setup complete. If a command fails, follow the troubleshooting steps below and rerun the full block with the same settings. Keep the project ID and bucket name for future visits.
The commands enable BigQuery, Vertex AI, Cloud Storage, Resource Manager, Cloud Billing, IAM and IAM Service Account Credentials. They create a dedicated service account (the Google identity that runs the work) and a private U.S. multi-region bucket, or reuse matching resources. Before granting access, they check the bucket’s owning project, enforced public access prevention and uniform bucket-level access. Start with a fresh bucket if you are unsure which files are already there.
Which permissions does the administrator grant?
- On your project, to the new service account — BigQuery Job User (
roles/bigquery.jobUser) to submit queries, Vertex AI User (roles/aiplatform.user) for model requests, and Service Usage Consumer (roles/serviceusage.serviceUsageConsumer) to use your project for API quota and billing. - On your dedicated bucket, to the same service account — Storage Object User (
roles/storage.objectUser) to manage result files, and Storage Bucket Viewer (roles/storage.bucketViewer) to check ownership and privacy settings. - On that service account, to the PatentTools broker — Service Account Token Creator (
roles/iam.serviceAccountTokenCreator) lets the broker obtain temporary credentials as your service account. Grant it on that account only. Keep the account dedicated to PatentTools and review any permissions it inherits.
Leave Google passwords, downloaded service account keys and Gemini API keys out of PatentTools. The setup uses Google sign-in and short-lived credentials. Google’s guide to impersonation · Cloud Storage role definitions
4. Check the connection
Return to the researcher’s workspace tab and select Check connection. Look for Project and bucket permissions verified followed by your project ID and bucket. This checks access to the project and private bucket, including active billing independent of PatentTools. It submits no patent query or Gemini request. If you have used this workspace before, you can start here after sign-in.
5. Find your first prior-art reference
- Under Invalidity search, start with Titles and abstracts. For a practice search, enter A tire pressure sensor that transmits a pressure reading wirelessly as the claim,
tire pressure, wireless sensoras the search terms, and January 1, 2015 under Published before. - Select Estimate search cost. The BigQuery dry run is free. Saving the estimate in your bucket can incur a small storage charge. Read the maximum billed scan and the approximate dollar amount. If your budget is $5 and the maximum exceeds it at your rate, stop here. Full text can scan more data.
- To authorize the scan up to that limit, read the public search terms, tick the charge-approval checkbox and choose Approve scan and run search. When ranked publications appear, open a publication number to read the original patent. Check the publication date and passages yourself.
- For an optional chart, select the primary reference first, then up to three secondary references. Accept the separate Google charge and choose Generate or reopen contention chart. Use Download Word chart to export it. On a later visit, reconnect the same project and bucket and choose Load saved searches.
The scan limit applies to one BigQuery job. Vertex AI, storage and any applicable transfer charges are separate. Review your project in Billing → Reports. See the cost breakdown and examples · Public search terms
If a step fails
- No setup commands appear. Check the workspace identity and both names. Use the project ID and a plain bucket name. Refresh and sign in again if the identity could not be verified.
- Cloud Shell reports permission denied. The administrator needs permission to enable APIs, create the service account and bucket, and change IAM on the project, bucket and new service account. Linking billing also requires access to the billing account. An ordinary researcher can hand the commands to an administrator. If Service Usage itself is disabled, enable it in the project’s API Library and retry.
- Bucket name taken or privacy check failed. Return to the workspace, choose a fresh globally unique name in your project and copy the updated commands. The gateway requires public access prevention explicitly set to
enforcedand uniform bucket-level access enabled. - Setup complete, but the connection fails. Confirm you are using the intended Google identity, project ID, private bucket and active billing account. Compare the three project grants, two bucket grants and one service-account grant listed above. New grants can take several minutes to propagate. Wait, then select Check connection again. Google’s IAM propagation guidance
- Your organization blocks the external broker. Ask your administrator whether policy allows the named broker on this dedicated service account. Keep the bucket private.
- The scan or chart fails after connection. Check project quota and API availability. If BigQuery rejects the scan cap, request a fresh estimate before approving again. For a chart, check that the project can use Gemini 4 Neon on the global Vertex AI endpoint. A successful permission check cannot establish model eligibility. Report a problem privately
How to disconnect
Signing out ends your browser session. To stop PatentTools from obtaining new credentials, have the administrator open Cloud Shell. From the original setup block, copy and run only the four assignment lines beginning with PROJECT_ID=, BUCKET=, ACCOUNT_NAME= and BROKER_EMAIL=. Then run the block below. It removes the broker grant on that service account.
(
set -eu
SERVICE_ACCOUNT="${ACCOUNT_NAME:?}@${PROJECT_ID:?}.iam.gserviceaccount.com"
gcloud iam service-accounts remove-iam-policy-binding "$SERVICE_ACCOUNT" \
--project="$PROJECT_ID" --member="serviceAccount:${BROKER_EMAIL:?}" \
--role=roles/iam.serviceAccountTokenCreator --condition=None
)
Allow time for Google to apply the change. Each previously issued PatentTools credential expires within 15 minutes of issuance. Jobs already submitted can finish. Files remain in your bucket and can continue to incur Google storage charges under your retention policy.