{"agent":"claude","input":"Add API key authentication beside the JWT. Read backend/app/api/deps.py, backend/app/models.py, backend/app/core/security.py, backend/app/crud.py, backend/app/api/routes/login.py, backend/app/api/routes/users.py, backend/app/api/main.py, backend/app/alembic/env.py, the latest file under backend/app/alembic/versions, backend/tests/conftest.py, backend/tests/api/routes/test_login.py and backend/scripts/test.sh first. Add an ApiKey table model with a user_id foreign key that cascades on delete, name, key_prefix, hashed_key, created_at, expires_at, last_used_at and revoked_at; generate the plaintext as sk_ plus secrets.token_urlsafe, return it once, and store a SHA-256 hash. Add POST, GET and DELETE routes under /users/me/api-keys for the signed-in user, where delete sets revoked_at. Change get_current_user to accept either a bearer JWT or an X-API-Key header, refusing expired and revoked keys with 403 and a missing credential with 401. Generate the Alembic migration with autogenerate and keep it. Write tests in the style of test_login.py. Run scripts/test.sh against a local PostgreSQL, ruff, mypy and ty, and open a pull request with the output.","resources":[{"url":"https://github.com/your-org/your-app"}]}