---
title: "Discussion on \"Ensuring API_KEY Security in Google Colab Notebooks\" | Hashnode"
description: "Discussion on \"Ensuring API_KEY Security in Google Colab Notebooks\". In the Cohere Google Colab notebook, you will notice that the API key is hardcoded.\n# Setup the Cohere client\napi_key = 'api_key' # Paste your API key here. Remember to not share it publicly\nco = cohere.Client(api_key)\n\nWhen I saved this on GitHub, I..."
url: "https://hashnode.com/posts/ensuring-apikey-security-in-google-colab-notebooks/653aeaf6ea1e3489c63aa918"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Ensuring API\_KEY Security in Google Colab Notebooks](https://curiousmind.hashnode.dev/ensuring-apikey-security-in-google-colab-notebooks?utm_source=hashnode&utm_medium=feed)

In the Cohere Google Colab notebook, you will notice that the API key is hardcoded. # Setup the Cohere client api\_key = 'api\_key' # Paste your API key here. Remember to not share it publicly co = cohere.Client(api\_key) When I saved this on GitHub, I...

Oct 26, 2023 · 1 min read · curiousmind.hashnode.dev  
Read the article

-   [#google-colab](https://hashnode.com/tag/google-colab)
-   [#cohereai](https://hashnode.com/tag/cohereai)
-   [#secure-coding](https://hashnode.com/tag/secure-coding)

## Written by

[Priti Solanki](https://hashnode.com/@backendbee)

@backendbee

  
[View profile](https://hashnode.com/@backendbee)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
