AI API Keys is a powerful Chrome extension designed to simplify managing and copying API keys for various AI services. With just a few clicks, users can store their API keys, easily copy them to the clipboard, and even paste them directly into input fields on web pages. This extension streamlines API key management and improves productivity for developers, AI enthusiasts, and anyone working with multiple APIs.
- Store API Keys: Save multiple API keys securely within your browser.
- Context Menu: Quickly access saved API keys via a right-click context menu.
- Clipboard Integration: Copy the API keys directly to your clipboard.
- Automatic Pasting: Automatically paste API keys into active input fields.
- Error Handling: Safely handles permission errors and clipboard restrictions.
- Sync Across Devices: Uses Chrome's storage API to sync API keys across devices.
To install the extension locally and begin development, follow these steps:
-
Clone the repository:
git clone https://github.com/your-username/ai-api-keys-extension.git cd ai-api-keys-extension -
Navigate to the Chrome Extensions page:
- Open Chrome and go to
chrome://extensions/ - Enable Developer Mode (toggle in the top-right corner)
- Open Chrome and go to
-
Load the unpacked extension:
- Click on Load unpacked and select the folder where you cloned this repository.
-
Verify installation:
- You should now see the extension icon in your Chrome toolbar.
- Click on the extension icon in the Chrome toolbar to open the popup.
- Click Add New Key to add an API key.
- Enter the API key name and the value in the provided fields.
- Click Save to store the key.
Your API keys are now saved securely in Chrome's local storage.
To copy an API key:
- Right-click anywhere on the webpage.
- In the context menu, hover over AI API Keys and select the API key you want to copy.
- The key will be copied to your clipboard automatically.
The extension attempts to paste the copied API key directly into an active input field:
- If an input field (such as a text box or a textarea) is focused, the extension will paste the copied key automatically.
- If no suitable input field is found, the key remains in the clipboard for manual pasting.
The extension requests the following permissions:
- Context Menus: Allows the extension to create context menu items for copying API keys.
- Storage: Enables storage of API keys in Chrome's sync storage, allowing access across devices.
- Active Tab: Allows the extension to interact with the currently active tab, enabling clipboard and input functionality.
You can view and modify these permissions via the manifest.json file.
The extension uses Chrome's sync storage to save your API keys. This means that your API keys will be synced across all devices logged into the same Chrome account, ensuring easy access wherever you are.
If the key doesn't paste automatically:
- Ensure you have an active input field selected.
- Check if your browser settings allow clipboard access. You can manually paste using
Ctrl + V(orCmd + Von Mac).
The extension relies on browser clipboard permissions. If you receive errors:
- Make sure you’ve granted the necessary clipboard permissions in your browser.
- Verify that no browser security policies are blocking clipboard access.
For more detailed error messages, open the Developer Tools in Chrome (Ctrl + Shift + I or Cmd + Option + I) and check the Console.
We welcome contributions to improve AI API Keys! If you have any ideas or bug reports, feel free to open an issue or submit a pull request.
- Fork the repository.
- Create a new branch:
git checkout -b feature-branch-name
- Make your changes.
- Push the changes:
git push origin feature-branch-name
- Submit a pull request.
Please follow our Contribution Guidelines for more information.
This project is licensed under the MIT License. See the LICENSE file for details. Please mention J. Gravelle in your docs and/or code if you use this. He's kinda full of himself...