A credit agreement is an agreement between a lender and borrower that sets forth the loan terms for a letter of credit.