{"id":23929,"library":"keepercommander","title":"Keeper Commander","description":"Keeper Commander is a command-line and SDK interface for the Keeper Security platform. It allows you to manage vault records, perform administrative tasks, and automate security workflows. Current version 17.2.16, compatible with Python >=3.7. Release cadence is frequent with multiple minor versions per year.","status":"active","version":"17.2.16","language":"python","source_language":"en","source_url":"https://github.com/Keeper-Security/Commander","tags":["password-manager","security","keeper","cli","sdk"],"install":[{"cmd":"pip install keepercommander","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"Common mistake: direct import of module doesn't expose the main class. Use the explicit import.","wrong":"import keepercommander","symbol":"KeeperCommander","correct":"from keepercommander import KeeperCommander"},{"note":"The api module is a submodule; import directly from keepercommander.","wrong":"","symbol":"api","correct":"from keepercommander import api"}],"quickstart":{"code":"from keepercommander import KeeperCommander\n\n# Initialize commander with your Keeper credentials\ncommander = KeeperCommander()\ncommander.login(os.environ.get('KEEPER_USER', ''), os.environ.get('KEEPER_PASSWORD', ''))\n\n# List records\nrecords = commander.get_records()\nfor record in records:\n    print(record.get('title'))","lang":"python","description":"Basic login and record listing. Replace KEEPER_USER and KEEPER_PASSWORD environment variables with your credentials."},"warnings":[{"fix":"Update login call to use environment variables or pass a config dictionary: commander.login(user='user', password='pass') or set env vars.","message":"In version 17.x, the login method parameters changed. Previously accepted separate username/password arguments; now expects a dictionary or uses environment variables. Code written for 16.x will fail.","severity":"breaking","affected_versions":"17.0.0+"},{"fix":"Replace get_records() with search_records() and adjust filtering as needed.","message":"The 'get_records' method is deprecated in favor of 'search_records' which provides more filtering options.","severity":"deprecated","affected_versions":">=17.0.0"},{"fix":"Install system packages: on Ubuntu: apt-get install build-essential libssl-dev libffi-dev python3-dev.","message":"When installing, ensure you have the required system dependencies for cryptography (openssl, etc.). On Windows, this may require Visual C++ build tools.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'pip install keepercommander' in the correct Python environment.","cause":"The package is not installed or installed in a different environment.","error":"ModuleNotFoundError: No module named 'keepercommander'"},{"fix":"Verify your Keeper credentials and ensure environment variables KEEPER_USER and KEEPER_PASSWORD are set correctly.","cause":"Incorrect username or password, or environment variables not set properly.","error":"keepercommander.exceptions.LoginFailed: Invalid credentials"},{"fix":"Upgrade keepercommander: 'pip install --upgrade keepercommander' and adjust login call to use keyword arguments.","cause":"Using an older version of keepercommander (pre-17.0) that expects positional arguments.","error":"TypeError: login() got an unexpected keyword argument 'user'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}